Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Saving Workbooks | Excel Discussion (Misc queries) | |||
When I open Excel, workbooks open automatically. How can I stop t | Excel Discussion (Misc queries) | |||
workbooks.open function fails to open an existing excel file when used in ASP, but works in VB. | Excel Programming | |||
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 | Excel Programming | |||
Workbooks.Open / .Open Text - How do you stop the .xls addition? | Excel Programming |