Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
!!! HELP PLEASE !!!!!
I have a password protected MS Excel 2003 spreadsheet with several Pivot Tables and numerous tabs collecting and displaying data based on these Pivot Tables. Specific individuals can open this MS Excel 2003 file for updates using a password and others simply open the file in "Read Only" mode. I have seven (7) Pivot Tables I need to have refreshed each time the MS Excel 2003 file opens. I created a macro called "RefreshAllPivotTables" in This Workbook. The macro goes to each of the Pivot Tables and refreshes the linked data when you use "ctrl+u". I need to ensure that each of the Pivot Tables always display the latest information available. However, our directors and managers find it too "inconvenient" to run the macro to refresh the data themselves. Thus I have been trying to get this macro to run automatically when the MS Excel 2003 file opens. I selected the third tab called "R3 Total" (there are a total of fifteen (15) tabs in this MS Excel 2003 file) and selected "View Coding". Using the VB Editor, I entered the following code: Option Explicit Sub Auto_Open() Call RefreshAllPivotTables End Sub It doesn't seem to matter if I open the MS Excel 2003 file in "Read Only" mode or use the password to open the file, my stored macro fails to execute automatically. Does it matter which tab is used or opened first? I need my "RefreshAllPivotTables" macro to run regardless of which of the fifteen (15) tabs are opened first. A co-worker mentioned that MS Excel 2003 no longer supports auto-run macro functions when a file opens. Is this true or am I simply doing something wrong? Any HELP would be appreciated. Thanks, -- Chip |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel opens two windows (2007 & 2003 format): I want only 2003. | Excel Discussion (Misc queries) | |||
Auto adding a macro when Excel 2003 opens | Excel Discussion (Misc queries) | |||
writing a macro that automatically opens another file | Excel Discussion (Misc queries) | |||
Excel automatically opens files | Excel Discussion (Misc queries) | |||
Excel file automatically opens | Excel Discussion (Misc queries) |