+ Reply to Thread
Results 1 to 4 of 4

autosave after cetain macro is run

  1. #1
    Registered User
    Join Date
    04-14-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    14

    autosave after cetain macro is run

    Hi, i need to autosave data after certain macro is run. How should i do this? Is there something to add on my existing macro so that it will autosave after running?
    Thanks!! Appreciate your replies

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: autosave after cetain macro is run

    hi,

    with the following line the Workbook which contains the code will be saved:
    Please Login or Register  to view this content.
    Regards
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: autosave after cetain macro is run

    The last line in your macro should save the workbook ..... Syntax is :- ActiveWorkbook.Save
    Elegant Simplicity............. Not Always

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: autosave after cetain macro is run

    Please Login or Register  to view this content.
    You might run into problems when you have more than one workbook opened, while the code is running, change the focus to another workbook, then the activated will be saved instead of the one which contains the code

    Regards

+ 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