+ Reply to Thread
Results 1 to 6 of 6

Private sub to make one cell blank when the other cell has value

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Private sub to make one cell blank when the other cell has value

    hello,

    Can anyone help me with a macro code to set cell A1 and A2 depending on one another. For example, if cell A1 has value, then cell A2 has to be blank and the other way around? If both cell blank then nothing happens.

    Thanks,

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Private sub to make one cell blank when the other cell has value

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Private sub to make one cell blank when the other cell has value

    Thank you for the code. however both cells are able to have value at the same time.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Private sub to make one cell blank when the other cell has value

    May be
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Private sub to make one cell blank when the other cell has value

    I still have the same problem.

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Private sub to make one cell blank when the other cell has value

    Quote Originally Posted by tantcu View Post
    Can anyone help me with a macro code to set cell A1 and A2 depending on one another. For example, if cell A1 has value, then cell A2 has to be blank and the other way around? If both cell blank then nothing happens.
    try
    Please Login or Register  to view this content.

+ 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 make a cell display text, if another cell is blank.
    By loccy in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-18-2015, 04:08 PM
  2. Replies: 1
    Last Post: 04-13-2015, 05:37 PM
  3. Replies: 3
    Last Post: 01-23-2014, 12:19 PM
  4. How do I make one cell blank if another cell has data in it and vice-versa?
    By Nosilla in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2014, 01:21 PM
  5. [SOLVED] How to make a dropdown list cell default to blank, after another cell selection is made
    By chardsmith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 03:46 AM
  6. Replies: 5
    Last Post: 03-08-2012, 11:17 AM
  7. Replies: 1
    Last Post: 12-17-2011, 10:14 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