+ Reply to Thread
Results 1 to 8 of 8

Bypass Beforesave Macro while developing

Hybrid View

  1. #1
    Registered User
    Join Date
    04-07-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Bypass Beforesave Macro while developing

    Mark:

    i am fairly new to VBA myself and I am working on a macro do do something very similar, could you post your code, I am hjaving a difficult time getting mine to work.

    Brad

  2. #2
    Registered User
    Join Date
    07-14-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Bypass Beforesave Macro while developing

    CBG05QB, No bother.

    As per the suggestion of mohd9876, I simply have a macro as below and do a run macro everytime I wish to save the file. The typical users of the Excel file won't be aware and hence will only successfully save the file when the cells are correctly entered. If you wish to save to a different file, you need to replace .Save with .SaveAs.

    -------
    Sub SaveCopies()
    Application.EnableEvents = False
    ActiveWorkbook.Save
    Application.EnableEvents = True
    End Sub
    ------

    Hope it helps.

+ 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.6.0 RC 1