Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 155
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Finish Spreadsheet Trying Hard Excel Discussion (Misc queries) 1 May 22nd 06 10:56 AM
Finish this sentence scottnshelly[_28_] Excel Programming 3 April 30th 04 10:20 AM
closing excel after closing a workbook CWalsh[_2_] Excel Programming 3 January 21st 04 03:33 PM
Need help to finish function.... Dan B Excel Programming 4 October 7th 03 10:06 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"