+ Reply to Thread
Results 1 to 4 of 4

find the blank cell in range and replace it

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    malaysia
    Posts
    89

    find the blank cell in range and replace it

    i am facing a problem here.
    how to find the blank cells in range (J:K) until the end of row.
    then replace it with "*"
    please help and thanks.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Hi ccs,

    This may work for you:

    1. Select columns J:K
    2. Press F5, then click 'Special', select 'Blanks' and click OK
    3. With all of your blanks now selected, press Shift+8, which will insert an asterisk into the first blank cell.
    4. Instead of pressing ENTER, press CTRL+ENTER. This will insert an asterisk into all of the blank cells you had selected in step 2.

  3. #3
    Registered User
    Join Date
    09-16-2008
    Location
    malaysia
    Posts
    89

    sorry

    sorry.. i want marco in programming, that 1 i also know

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello ccs1981,

    Here is a VBA macro to fill the blanks with an asterisk. It is important to note that when using the SpecialCells method, it will fail if the last cell in the column is empty. If you run this macro on a empty column then nothing will happen. Cells that lie beyond the last cell with data will not be filled either.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

+ 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