+ Reply to Thread
Results 1 to 4 of 4

Fill cell in column only if blank.

  1. #1
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Fill cell in column only if blank.

    I am trying to add an IF statement around this code to say "do the below action" if the cell in I column in null/blank. If the cell in col I is not blank then leave alone and move on to the next cell and only carry out the below code if the cell in col I is blank.

    Thank



    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Fill cell in column only if blank.

    Maybe something like:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-20-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007, Excel 2003, Excel 2010
    Posts
    284

    Re: Fill cell in column only if blank.

    I tried this but it did not work. it still altered the non-blank cells also.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Fill cell in column only if blank.

    I've just double checked and it works for me. It might help if you upload your workbook with the code you are using included.

    Note, this also depends on your definition of a blank cell. If it has a formula that returns blank (or even 0) this will not be counted by vba as being blank. Without seeing the data it is hard to know for sure but maybe something like:
    Please Login or Register  to view this content.
    would be better

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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