+ Reply to Thread
Results 1 to 5 of 5

Thread: Forcing Macros - For people who don't save documents enough!!!

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    USA
    MS-Off Ver
    Excel 97
    Posts
    26

    Question Forcing Macros - For people who don't save documents enough!!!

    I have done some searching and tried a few search results but haven't found anything that has actually worked. I have a few people who do not save their sheets ALL DAY! I need to force them to auto save when they change a cell. Does anyone have a good way to force someone to use macros when they open the sheet?

  2. #2
    Forum Guru jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    2,573

    Re: Forcing Macros - For people who don't save documents enough!!!

    Have you conduted a keyword search here on this forum or through google/yahoo?

    One option...

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=379
    HTH
    Regards, Jeff

    If you like the answer(s) provided, why not add some reputation by clicking the * below
    Please use [ Code ] tags when posting [ /Code ]
    Please view/read the Forum rules --- How to mark a thread as solved

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    USA
    MS-Off Ver
    Excel 97
    Posts
    26

    Re: Forcing Macros - For people who don't save documents enough!!!

    As I mentioned in the beginning of my original post, I have done some searching. The link you posted looks familiar but I will give it a shot.

    Thanks!

  4. #4
    Forum Guru jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2007
    Posts
    2,573

    Re: Forcing Macros - For people who don't save documents enough!!!

    Quote Originally Posted by flipjarg View Post
    As I mentioned in the beginning of my original post, I have done some searching. The link you posted looks familiar but I will give it a shot.

    Thanks!
    Sorry I missed that part

    Let us know if you need any further help
    HTH
    Regards, Jeff

    If you like the answer(s) provided, why not add some reputation by clicking the * below
    Please use [ Code ] tags when posting [ /Code ]
    Please view/read the Forum rules --- How to mark a thread as solved

  5. #5
    Registered User
    Join Date
    01-14-2009
    Location
    USA
    MS-Off Ver
    Excel 97
    Posts
    26

    Exclamation Re: Forcing Macros - For people who don't save documents enough!!!

    Hey, great, that one works! Thank you! However, there is one problem. When I put my macro in to save every time a cell is edited, my macro doesn't work. When I remove the "force macros" code, my macro works.

    My Macro (this code is placed under the worksheet that is being edited):
    ' SAVE THE FILE UPON CELL EXIT WITHOUT PROMPTING THE USER... SAVES IN BACKGROUND.
    Private Sub Worksheet_Change(ByVal Target As Range)
        Application.DisplayAlerts = False ' TURNS ALERTS OFF
    
        ActiveWorkbook.SaveAs ThisWorkbook.FullName
    
        Application.DisplayAlerts = True ' TURNS ALERTS BACK ON
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0