+ Reply to Thread
Results 1 to 5 of 5

How to fill up blank cells by copying from cell above

  1. #1
    Registered User
    Join Date
    05-25-2021
    Location
    Muscat, Oman
    MS-Off Ver
    365
    Posts
    2

    How to fill up blank cells by copying from cell above

    Dear Sir/ Madam

    I need some assistance in VBA. I am new to VBA and programming and I'm trying to auto fill blank cell/s from cell above the empty cell. However, I am not able to get the instruction correct. can you please help me.
    Basically I have a work book that consist of data but some cells are empty.

  2. #2
    Forum Contributor
    Join Date
    05-18-2021
    Location
    London, Ontario
    MS-Off Ver
    365
    Posts
    115

    Re: How to fill up blank cells by copying from cell above

    To flash fill formulas and other things you just click on the cell with data on it, then hover your cursor over the bottom right of the cell until it turns into a black plus sign, then drag down to the cells below it

  3. #3
    Registered User
    Join Date
    05-25-2021
    Location
    Muscat, Oman
    MS-Off Ver
    365
    Posts
    2

    Re: How to fill up blank cells by copying from cell above

    Dear Dohvakin,

    thank you for your response.

    I am trying to automat a file by running a series of macro programs and for that purpose i want marco to fill the blanks to proceed with the next step in the macro. I hope that make sense sorry i am new to all this! would there by other way than the one you suggested for marco ? thank you

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,713

    Re: How to fill up blank cells by copying from cell above

    Hi Lady82 & welcome to the forum,

    Try the below code assuming your data is in column A - change according to your actual file setup
    Please Login or Register  to view this content.
    Last edited by nankw83; 05-25-2021 at 12:30 PM. Reason: Added declaration of range variable c
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,700

    Re: How to fill up blank cells by copying from cell above

    One way
    Please Login or Register  to view this content.
    or with a loop (= slower)
    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. [SOLVED] Auto fill up cells if the above cell is blank
    By RIZVI in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-29-2019, 03:09 AM
  2. [SOLVED] Search Range for NonBlank Cells, Fill Down only one cell below NOT all Blank cells belof
    By safari20WDG in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-07-2017, 01:23 AM
  3. [SOLVED] Fill blank cells,select from the last cell
    By salazarcl.17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2016, 01:18 PM
  4. Fill blank cells with data directly above that blank cell
    By gibson2503 in forum Excel General
    Replies: 3
    Last Post: 06-05-2013, 10:07 AM
  5. How to color-fill blank cells, then once data is entered cell is no-fill
    By hatemail13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2013, 07:57 PM
  6. Replies: 0
    Last Post: 03-05-2013, 09:22 AM
  7. Replies: 0
    Last Post: 04-07-2009, 04:42 PM

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