Suppressing the Data Link Properties dialog box in Excel using VBA -


while refreshing workbooks pivots (that externally linked excel file containing data) using vba ( .refreshall), dialog box titled "data link properties" pops up.

i tried suppress dialog doevents delays, application.screenupdating=false, application.displayalerts=false, oledb.backgroundquery=false. nothing seems working.

to make matters more confusing, dialog box doesn't pop regularly. does, doesn't.

my debugging attempts has lead 1 theory: caused size of data file, , thereby memory excel taking in ram. dialog doesn't seem pop when both of these small. when file approaches more 10mb, dialog becomes more frequent. feel has memory, though there's @ least 1 gb of available memory. makes no sense i've run out of ideas.

another clue: if click cancel on data link properties , click refreshall button on ribbon: gives "an unspecified error" , other errors related data file not being found, though path valid, , file exists.

it refresh without dialogs if exit entire excel application, reopen , refresh.

(closing excel application , re-opening via script isn't option me, because mess call stack , end execution flow.)

i've found 2 other links of people discussing this: first has no replies , can't understand the second one saying.

i ran same exact problem today. seems there limit how many connections there can within workbook. kept recieving "unspecified error" followed data link properties. limit seems 70. able fix going separate workbooks , condensing tabs more. hope helps!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

php - Find a regex to take part of Email -

javascript - Function overwritting -