+ Reply to Thread
Results 1 to 3 of 3

Adding cell value to worksheet change

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Adding cell value to worksheet change

    How would I add something like -

    If E20 doesn't equal "Override" then E21 equals "=VLOOKUP(E20,county_data,2,FALSE)"

    Please Login or Register  to view this content.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Adding cell value to worksheet change

    Try this....

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Adding cell value to worksheet change

    I tried it your way and got a stack overflow error during the ActiveSheet.Protect when I select something other then Override in E20. I also tried adding the formula to my version and get the same stack overflow error during the "Else" "ActiveSheet.Protect". When Override is selected it works perfectly, it's only an issue if Override isn't selected.

    Please Login or Register  to view this content.
    Could it be that I have this as part of a larger script?

    Here is my complete script:

    Please Login or Register  to view this content.
    Last edited by 288enzo; 03-25-2014 at 10:25 AM.

+ 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. Worksheet On Change Calls Sub to change Cell colors
    By sportsguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2014, 12:20 PM
  2. Replies: 1
    Last Post: 08-15-2013, 09:14 PM
  3. [SOLVED] Worksheet change macro on a change in a specific cell
    By dzuspann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 04:19 PM
  4. auto change cell formula on condition of worksheet change in other cells
    By futurejock in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-01-2009, 12:11 AM
  5. [SOLVED] Cell value change to trigger macro (worksheet change event?)
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 10:00 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