Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've selected A5:D10, then run the following macro:
(The range has multiple blank cells scattered throughout and I'd like to eliminate the blank cells and pull all to the leftmost as contiguous cells. One of my rows which only has a value in D7 doesn't make it over to A7 (it gets moved to only B7..) Any sugestions? Sub Macro3() ' Macro3 Macro ' Macro recorded/edited 7/24/2005 by Jim May Set Rng = Selection For Each bcell In Rng If bcell = "" Then bcell.Delete Shift:=xlToLeft End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code assistance | Excel Programming | |||
Assistance with code Please | Excel Discussion (Misc queries) | |||
I need assistance getting VBA code to do the following... | Excel Programming | |||
Code assistance please | Excel Programming | |||
VBA Code Assistance | Excel Programming |