+ Reply to Thread
Results 1 to 3 of 3

Find next blank cell and fill with above value

Hybrid View

superbob Find next blank cell and fill... 03-31-2010, 09:47 AM
DonkeyOte Re: Find next blank cell and... 03-31-2010, 10:01 AM
superbob Re: Find next blank cell and... 03-31-2010, 10:34 AM
  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Find next blank cell and fill with above value

    Hi,

    I'm looking to write a macro that will find the next blank (empty) cell in column A and then copy the value from the above cell and paste it into that blank cell.

    So for example, Column A has 10 rows of data and in cell A11 I want to copy whatever value is in A10 and paste this into A11.

    Thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find next blank cell and fill with above value

    Perhaps... based on your example:

    With Cells(Rows.Count,"A").End(xlUp)
        .Resize(2).Value = .Value
    End With

  3. #3
    Registered User
    Join Date
    02-08-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: Find next blank cell and fill with above value

    Fantastic - works perfectly!!!

    Thank you very much!

+ 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