+ Reply to Thread
Results 1 to 3 of 3

Adding Save Worksheet to end of Macro

  1. #1
    Registered User
    Join Date
    12-01-2006
    Posts
    17

    Adding Save Worksheet to end of Macro

    Hi all

    I have created a Macro that works fine, however i forgot to make it save the workbook after it has ran the Macro.

    Is there an easy way to add this at the end? or will i have to re-do the Macro from scratch?

    thanks

    Chris

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Adding Save Worksheet to end of Macro

    Hi Chris,

    Add

    ActiveWorkbook.Save

    as the last line of your macro
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-01-2006
    Posts
    17

    Re: Adding Save Worksheet to end of Macro

    Quote Originally Posted by Richard Buttrey View Post
    Hi Chris,

    Add

    ActiveWorkbook.Save

    as the last line of your macro
    Brilliant thank you so much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro help: Adding Code to save file or email based on a condition
    By slu2383 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-26-2012, 01:39 PM
  2. [SOLVED] Macro to save one worksheet
    By JoeNK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 07:15 PM
  3. adding date to save macro
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-07-2008, 04:15 PM
  4. To save a worksheet macro
    By serpent333 in forum Excel General
    Replies: 1
    Last Post: 12-11-2007, 04:54 PM
  5. [SOLVED] Adding a worksheet from a date named workbook and save as current
    By Lynn Bales in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 09:05 AM

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