+ Reply to Thread
Results 1 to 4 of 4

How save active workbook w/o knowing name

  1. #1
    John
    Guest

    How save active workbook w/o knowing name

    I tried "ActiveWorkbook.Save", but I don't think this saved the workbook. I
    have a bunch of macros that update data on various sheets in various
    workbooks and want to save the entire workbook at the end of each macro
    without knowing which workbook the macro is running in. What is the correct
    command?

  2. #2
    Gary Keramidas
    Guest

    Re: How save active workbook w/o knowing name

    that works for me

    --


    Gary


    "John" <John@discussions.microsoft.com> wrote in message
    news:BAFF90F7-ED9A-462C-96E7-2B536E16AEC6@microsoft.com...
    >I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.
    >I
    > have a bunch of macros that update data on various sheets in various
    > workbooks and want to save the entire workbook at the end of each macro
    > without knowing which workbook the macro is running in. What is the
    > correct
    > command?




  3. #3
    Norman Jones
    Guest

    Re: How save active workbook w/o knowing name

    Hi John,

    If your intention is to save the active workbook, then your code:

    ActiveWorkbook.Save

    is correct.

    >I tried "ActiveWorkbook.Save", but I don't think this saved the workbook


    Are you sure that the active workbook was the one that you expected?

    ---
    Regards,
    Norman


    "John" <John@discussions.microsoft.com> wrote in message
    news:BAFF90F7-ED9A-462C-96E7-2B536E16AEC6@microsoft.com...
    >I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.
    >I
    > have a bunch of macros that update data on various sheets in various
    > workbooks and want to save the entire workbook at the end of each macro
    > without knowing which workbook the macro is running in. What is the
    > correct
    > command?




  4. #4
    Tim Williams
    Guest

    Re: How save active workbook w/o knowing name

    > without knowing which workbook the macro is running in

    It's not completely clear from your post whether the macros and data are
    located in the same workbooks.
    Maybe ThisWorkbook.Save is what you need (if your macro is operating on data
    in the same workbook as the macro location).

    Tim

    --
    Tim Williams
    Palo Alto, CA


    "John" <John@discussions.microsoft.com> wrote in message
    news:BAFF90F7-ED9A-462C-96E7-2B536E16AEC6@microsoft.com...
    > I tried "ActiveWorkbook.Save", but I don't think this saved the workbook.

    I
    > have a bunch of macros that update data on various sheets in various
    > workbooks and want to save the entire workbook at the end of each macro
    > without knowing which workbook the macro is running in. What is the

    correct
    > command?




+ 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