![]() |
Finish one App before closing??
How do I get this to finish the refreshing the pivot table before trying to save and then close excel???
THANKS IN ADVANCE!!!!! Sub Auto_Open() ' ' Auto_Open Macro ' Macro recorded 6/23/2004 by Tetris ' ' ChDir "T:\Data" Workbooks.Open Filename:= _ "T:\Data\test.xls" ActiveSheet.PivotTables("PivotTable1").RefreshTabl e ActiveWorkbook.Save ActiveWindow.Close Set excelApp = GetObject(, "Excel.Application") excelApp.Quit End Sub |
All times are GMT +1. The time now is 07:15 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com