+ Reply to Thread
Results 1 to 8 of 8

edit worksheet activate vba to perform also when a cell is changed

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    edit worksheet activate vba to perform also when a cell is changed

    good afternoon,

    im currently using the following code to automatically filter out the N/A errors when i open the worksheet:
    Please Login or Register  to view this content.
    it works perfectly!!

    however, i also want for the same thing to occur when the cell contents of either cells A1 or A2 is changed.
    i dont know how to re-write the code to do this.

    can someone please help.
    thanks.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: edit worksheet activate vba to perform also when a cell is changed

    Hello tlacloche,

    This may sound like a stupid question, but do you need the #N/A?

    One could change the formulae not to show #N/A.

    Regards
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: edit worksheet activate vba to perform also when a cell is changed

    everything needs to remain as it is.
    apologies if this complicates things but the whole worksheet works based on how it is currently set up.

    i guess my question is fairly simple if you know how...How do you write a vba code to activate when a cell's contents is changed?

  4. #4
    Registered User
    Join Date
    01-21-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: edit worksheet activate vba to perform also when a cell is changed

    You can try something like this. I have not tested it, but it should get you on the right track.

    Please Login or Register  to view this content.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: edit worksheet activate vba to perform also when a cell is changed

    Perhaps:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: edit worksheet activate vba to perform also when a cell is changed

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2011
    Posts
    474

    Re: edit worksheet activate vba to perform also when a cell is changed

    Izandol, youre a star!!!!!

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: edit worksheet activate vba to perform also when a cell is changed

    You are welcome.

+ 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. Replies: 3
    Last Post: 10-10-2012, 05:10 PM
  2. Click on a cell and have that worksheet with the same name activate
    By grimston in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-30-2012, 03:17 PM
  3. Activate Worksheet from a specific Cell
    By jbear01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2010, 04:15 PM
  4. [SOLVED] cell changed -> worksheet name changes
    By claudio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2006, 03:55 PM
  5. [SOLVED] RE: cell changed -> worksheet name changes
    By excelent in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2006, 02:30 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