+ Reply to Thread
Results 1 to 4 of 4

Macro to Fill Blank Cells

  1. #1
    Registered User
    Join Date
    07-13-2007
    Posts
    50

    Macro to Fill Blank Cells

    Hello, Can anybody help me?

    I need a macro that will select blank cells in a column and fill in the blank cells with the values immediately above the blank cells.

    Example

    ROWS
    A

    1234



    5678



    9876
    4256

    This means that I need the macro to fill in the Blank cells between (1234)&(5678) with 1234. Then fill in the Blank cells between (5678)&(9876) with 5678.

    Any help is greatfully appreciated.

    Thanks

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Link should help

    Did the other code work for you ??

    http://www.contextures.com/xlDataEntry02.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Do you really need code?
    1. Select the column with the blanks.
    2. Goto Edit>Goto...Special and select blanks.
    3. Goto the formula bar, enter =A1 (or whatever the first cell with data is) and then press CTRL+ENTER.
    4. Select the column, copy and paste special values.

  4. #4
    Registered User
    Join Date
    07-13-2007
    Posts
    50

    Hi VBA Noob and Norrie

    Hi VBA Noob I think I posted a reply to your response. YES the code you gave me worked out perfectly!!!

    Thanks Again.

    Norrie I tried what you told me and yes it worked out as well.

    Thanks a bunch both of you guys.

    Thanks

+ 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