fill blank rows data
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Fill Blank rows with data in cell above

Fill Blank rows with data in cell above

resolvedResolved · Low Priority · Version 2003

replyReply Thu 23 Oct 2008, 16:31Delegate Edd said...

Edd has attended:
Excel VBA Intro Intermediate course

Fill Blank rows with data in cell above

I am trying to fill blank rows with data from the row above. I would like to avoid a loop mechanism as this will take some time to run.

Whenever I attempt to use Go To > Blanks and use RC -1 formulae excel informs me that the selection is too large.

Is there any way around this?

For upcoming training course dates see: Pricing & availability

replyReply Thu 23 Oct 2008, 17:18Trainer Katie said...

RE: Fill Blank rows with data in cell above

Hi Edd,

Thanks for your question. If you are trying to copy the entire row from above, i.e the shortcut CTRL + D, then try the following:

==================================

Sub CopyRowAbove()

Dim Row As Byte
Row = ActiveCell.Row

Rows(Row & ":" & Row).copy
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste

End Sub

==================================

See if this helps.

Kind regards,

Katie Woo
Microsoft Certified Trainer

 

Please browse our web site to find out more about
excel-courses-london and other Microsoft training courses.

Excel tip:

Remove unused toolbar buttons

Are there buttons on your Excel toolbars that you never use? Remove them from the toolbar by doing the following:

1. Go to Tools - Customise - Commands.
2. Select the toolbar button you wish to remove, then use your mouse to drag and drop the button into the Excel window. When you release your finger from the mouse, the button will disappear.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard