+ Reply to Thread
Results 1 to 5 of 5

Aftersave event - fixed range of cells

  1. #1
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Aftersave event - fixed range of cells

    Hi all,

    How can I return a
    Please Login or Register  to view this content.
    whenever any cell is changed in columns A or B. I want it to run as an AfterSave event.


  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Aftersave event - fixed range of cells

    I don't think there is an aftersave event, you need to use the beforesave event and code your own save routine then run your code after that.

    I would suggest you have a dummy worksheet with a copy of columns A and B and compare this to the actual worksheet to see if they are the same, then after the "aftersave" event is run set the dummy worksheet equal to the actual worksheet.

  3. #3
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Re: Aftersave event - fixed range of cells

    Hi ragulduy,

    That's not quite what I'm after. I require something that shows the MsgBox once the sheet is saved and then (just before) closed. Otherwise it will show everytime a cell is changed within A or B which could be hundreds of times. I essentially only want to show the MsgBox once.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Aftersave event - fixed range of cells

    Hi,

    I think that is what I described, the program logic would be:
    -BeforeSave event triggered
    -BeforeSave event calls macro1 and then macro2 and then macro3
    -macro1 is your save routine
    -macro2 compared the worksheet to the dummy sheet, if it is different it displays message box
    -macro3 sets the dummy sheet equal to the worksheet

  5. #5
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Re: Aftersave event - fixed range of cells

    Ahh yes I see, thank you ragulduy.

+ 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. Fixed size for some range of cells
    By tanvi_kalra in forum Excel General
    Replies: 6
    Last Post: 02-14-2014, 08:41 AM
  2. aftersave event - problem - ignored on office 2007
    By kmeld in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2014, 11:19 AM
  3. Copy a fixed range of cells from a filtered Table
    By jsuarez199 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-27-2013, 06:53 AM
  4. Identify & highlight if all cells in a fixed range are blank
    By heena.singh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-24-2013, 05:57 AM
  5. Change range of cells within VBA macro and copy and paste to fixed cell range
    By Mannyny in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-20-2012, 11:51 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