+ Reply to Thread
Results 1 to 3 of 3

How to clear the contents of a cell, based on the content of an adjacent cell

  1. #1
    Registered User
    Join Date
    01-28-2021
    Location
    Ohio
    MS-Off Ver
    10
    Posts
    2

    How to clear the contents of a cell, based on the content of an adjacent cell

    Hello Forum,

    I am trying to conditionally clear the content of cells, based on the content of an adjacent cell. I attached the spreadsheet with the code I have so far. Here is the VBA code:

    Please Login or Register  to view this content.
    In the attached file, I have managed to clear the contents of cell F7 if the content of E7 is "Major". I would like to continue that for all cells below row 7 in those columns. However, as someone who does not know what they are doing, I am stuck. Can anyone help?

    Thanks!
    Attached Files Attached Files
    Last edited by davesexcel; 02-02-2021 at 10:27 AM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to clear the contents of a cell, based on the content of an adjacent cell

    Hi duncanjosh,
    try it
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-28-2021
    Location
    Ohio
    MS-Off Ver
    10
    Posts
    2

    Re: How to clear the contents of a cell, based on the content of an adjacent cell

    It worked beautifully! Thank you nilem.

+ 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. Clear contents of cell if content of another cell is changed.
    By JordiM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2021, 08:43 AM
  2. Replies: 1
    Last Post: 05-09-2018, 02:14 AM
  3. Clear cell contents based on adjacent cell entry
    By Nigel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2018, 05:37 AM
  4. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  5. Replies: 3
    Last Post: 08-16-2014, 09:55 AM
  6. VBA Code to Make a Cell Value Negative Based on Content of Adjacent Cell
    By Court Manager in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2014, 04:18 PM
  7. Macro that will clear contents of cell based on format of text in adjacent cell
    By judasdac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2012, 01:56 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