excel - Change PivotTable data source without validating the connection -


i've developing solution client includes excel template pivottable. pivottable's data source query against sql server. before send template client, i'd change connection string reference client's sql server instead of local server. problem is, connection string doesn't work on computer, excel throws error when try edit connection , won't save new connection string.

what's frustrating somehow did week ago, can't remember how. have version of spreadsheet created external connection string. unfortunately, had make change query, , trying make change existing spreadsheet results in same problem -- excel tries connect data source validate query, , fails so.

how can change connection string without excel trying refresh data? know can done, because i've done it, have no idea did!

you able suppress auto-refresh setting .enablerefresh = false property of pivotcache.

however, need somehow reset property true upon start of spreadsheet or delivery client, else pivot table won't able refresh @ all.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -