+ Reply to Thread
Results 1 to 7 of 7

Resetting change event

  1. #1
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Asheville, NC
    MS-Off Ver
    Excel 2016
    Posts
    99

    Resetting change event

    I searched for this, but didn't find anything quite this way. I hope I'm not rehashing this....

    I have a page that I input to with a user form. However, if some bad data is input, I want to allow edits. I put in a command button to allow viewing and/or editing, then added the following code to the change event of the page:
    Please Login or Register  to view this content.
    This works just fine when I run it, make one edit, then say that I am done.

    However, if I want to make a second change, clicking "yes", I do not have my change event occur again.

    How do I get the change event to show up again?

    Thanks in advance.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Resetting change event

    What change event are you referring to?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Asheville, NC
    MS-Off Ver
    Excel 2016
    Posts
    99

    Re: Resetting change event

    When I enter information to a cell, I have this set to pop up. However, if "No" is pressed, the next time I enter information to a cell, this doesn't pop up again.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Resetting change event

    So which change event are you using?

  5. #5
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Asheville, NC
    MS-Off Ver
    Excel 2016
    Posts
    99

    Re: Resetting change event

    Private Sub Worksheet_Change(ByVal Target As Range)

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Resetting change event

    Are you disabling events at any point?

  7. #7
    Forum Contributor
    Join Date
    03-12-2014
    Location
    Asheville, NC
    MS-Off Ver
    Excel 2016
    Posts
    99

    Re: Resetting change event

    I'm not sure what that would mean, sorry.

    As far as I know, I am not stopping anything from running. I don't have screen updating as false.

    I just figured it out. I had reset a variable, and didn't need to.

    Thanks for asking the questions to get me to think!
    Last edited by TRLWNC; 06-12-2015 at 12:41 PM. Reason: clarification

+ 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. How to prevent SelectionChange event firing before Change event?
    By franklyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 05:17 AM
  2. Worksheet Change event ignore change event
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 12:29 PM
  3. MsgBox in Enter event causes combobox not to run Change event
    By Richard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2006, 10:55 AM
  4. Worksheet Change Event-change event to trigger
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-18-2005, 06:05 PM
  5. [SOLVED] Resetting values based on change in cells of other column
    By NSteinner in forum Excel General
    Replies: 1
    Last Post: 09-04-2005, 12:05 PM

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