Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook "B.xls" that when opened, I need a linked query
refreshed. This is now manually done by choosing the "Enable automatic refresh" button on the Query refresh dialogue box that pops up when the file is opened manually. I have added code in workbook A.xls behind a button that opens workbook B.xls. Works fine EXCEPT that the query DOES NOT get refreshed and no dialogue box pops up. Can anyone suggest code to add to my workbook.open that will run the query refresh? Dim wkbk As Workbook On Error Resume Next Set wkbk = Workbooks("B.xls") On Error GoTo 0 If wkbk Is Nothing Then Set wkbk = Workbooks.Open(Filename:="C:\Data\ClientName\B.xls ") End If Thanks Dennis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to open after auto refresh(Query) | Excel Discussion (Misc queries) | |||
Refresh Ext Date Range Query with workbook closed? (Exc2003) | Excel Programming | |||
Refresh business query on open | Excel Discussion (Misc queries) | |||
Auto Open file VBA Refresh MS Query Save Close | Excel Programming | |||
Supress Query Refresh dialog on opening workbook | Excel Programming |