Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Saving all open workbooks

Hi all,

I am using a userform to look at different workbooks all at once. How do I
get excel to save all the workbooks at once then use the application.quit
option?

Thanks

Greg


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Saving all open workbooks

Try this Greg

Sub test()
Dim wb As Workbook
For Each wb In Workbooks
wb.Save
Next wb
Application.Quit
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Greg" wrote in message ...
Hi all,

I am using a userform to look at different workbooks all at once. How do I
get excel to save all the workbooks at once then use the application.quit
option?

Thanks

Greg




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default Saving all open workbooks

Thank you Ron works great

Greg
"Ron de Bruin" wrote in message
...
Try this Greg

Sub test()
Dim wb As Workbook
For Each wb In Workbooks
wb.Save
Next wb
Application.Quit
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Greg" wrote in message

...
Hi all,

I am using a userform to look at different workbooks all at once. How

do I
get excel to save all the workbooks at once then use the

application.quit
option?

Thanks

Greg






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
Saving Workbooks Jamad Excel Discussion (Misc queries) 2 April 10th 08 03:33 PM
When I open Excel, workbooks open automatically. How can I stop t Rhealbird Excel Discussion (Misc queries) 2 February 23rd 06 10:08 AM
workbooks.open function fails to open an existing excel file when used in ASP, but works in VB. san Excel Programming 1 January 3rd 06 03:22 AM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM
Workbooks.Open / .Open Text - How do you stop the .xls addition? Dave[_20_] Excel Programming 2 July 31st 03 04:03 AM


All times are GMT +1. The time now is 02:51 AM.

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

About Us

"It's about Microsoft Excel"