+ Reply to Thread
Results 1 to 4 of 4

VBA Excel - Null The Value of a cell when the value of another cell changes

  1. #1
    Registered User
    Join Date
    08-17-2017
    Location
    Sofiya
    MS-Off Ver
    2016
    Posts
    44

    VBA Excel - Null The Value of a cell when the value of another cell changes

    Hello,

    I have never used VBA. I saved my excel file in xlsm and put this code:

    Please Login or Register  to view this content.
    But its not working. The idea is when i change my first dropdown menu the second one to be null.
    Attached Files Attached Files
    Last edited by jeffreybrown; 08-20-2017 at 09:39 AM. Reason: Please use code tags!

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: VBA Excel - Null The Value of a cell when the value of another cell changes

    It's not working because the code is waiting for a manual change to be made in D1. Since the change is being made automatically, the code doesn't fire. You can try using a dropdown change event like so...
    Please Login or Register  to view this content.
    Place the code in a regular module, not a class module

    Pinkoto-vba-excel-null-the-value-of-a-cell-when-the-value-of-another-cell-changes-test101.xlsm
    Last edited by gmr4evr1; 08-20-2017 at 10:47 AM. Reason: Added attachment
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    08-17-2017
    Location
    Sofiya
    MS-Off Ver
    2016
    Posts
    44

    Re: VBA Excel - Null The Value of a cell when the value of another cell changes

    thank you!

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: VBA Excel - Null The Value of a cell when the value of another cell changes

    You're 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: 4
    Last Post: 05-20-2014, 01:05 PM
  2. Excel script/formula to copy cell if above cell is null?
    By tdav20 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2012, 06:32 AM
  3. Splitting cell if the cell value is not null
    By ramserp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2009, 05:21 AM
  4. [SOLVED] cell value based on null/not null in another cell
    By spence in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2006, 07:55 PM
  5. [SOLVED] cell shows 0 when referenced cell is null
    By dee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-06-2005, 09:05 AM
  6. if cell has null value, move data from one cell to another
    By looped in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2005, 08:06 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