I have an AO template with many queries. However, I only want a specific query to refresh on open. Using SAPExecuteCommand's refresh crashes Excel at times. Is there an ideal way to accomplish this?
Reason I'm even doing this is to "initialize" the prompt variables, which apparently requires first refreshing the query. I do not use the prompt dialog but instead use VBA to set the prompts. Before I can set the prompts, I have to force one of the queries to refresh. Kind of a catch 22 situation. Is there anyway to SAPExecuteCommand "initialize variables"? Refreshing the query on workbook open frequently crashes AO/Excel.
Thanks in advance...