+ Reply to Thread
Results 1 to 3 of 3

Saving all open workbooks

Hybrid View

  1. #1
    Greg
    Guest

    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. #2
    Ron de Bruin
    Guest

    Re: 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" <laptopgb@ihug.com.au> wrote in message news:e0l33d$c7j$1@lust.ihug.co.nz...
    > 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. #3
    Greg
    Guest

    Re: Saving all open workbooks

    Thank you Ron works great

    Greg
    "Ron de Bruin" <rondebruin@kabelfoon.nl> wrote in message
    news:uFnNRPWVGHA.4976@TK2MSFTNGP11.phx.gbl...
    > 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" <laptopgb@ihug.com.au> wrote in message

    news:e0l33d$c7j$1@lust.ihug.co.nz...
    > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1