Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something more like this...
Sub JCW_Refresh() application.screenupdating = false with Sheets("ODBC Updates") .visible = xlsheetvisible .QueryTable.Refresh BackgroundQuery:=False .visible = xlsheethidden end with application.screenupdating = true End Sub -- HTH... Jim Thomlinson "Dan" wrote: Hello - I have some VBA which will REFRESH DATA on a worksheet. However, when the worksheet is hidden, the macro will not work. How can I get this code to work on this HIDDEN WORKSHEET? Sub JCW_Refresh() Sheets("ODBC Updates").Select Selection.QueryTable.Refresh BackgroundQuery:=False Sheets("JCW").Select End Sub Thanks for helping out this rookie. Dan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
External Data Refresh all just for one worksheet | Excel Discussion (Misc queries) | |||
Create refresh button in worksheet to refresh Pivot Table Data | Excel Worksheet Functions | |||
How do I detect hidden worksheets or hidden data on a worksheet? | Excel Discussion (Misc queries) | |||
How To Refresh Chart Data Without Calculating The Worksheet | Charts and Charting in Excel | |||
Saving hidden data with a worksheet (preferably without using a hidden sheet) | Excel Programming |