Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to select a range of cells (2x100apprx). I need to insert
a blank cell beneath each existing cell (not an entire row) without having to select each cell individually. I'm sure there is a macro for this, but I have no idea how to create it. Can someone advise how to do this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub advins()
Range("B9:C9").Select Selection.Insert Shift:=xlDown End Sub This is an example! Replace B9:C9 by your real range! Try to record a macro in such cases! Regards, Stefi €žsmith06374€ť ezt Ă*rta: I am trying to select a range of cells (2x100apprx). I need to insert a blank cell beneath each existing cell (not an entire row) without having to select each cell individually. I'm sure there is a macro for this, but I have no idea how to create it. Can someone advise how to do this? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Try this Sub tester() Dim Rowcount As Long Rowcount = Selection.Rows.Count For i = Rowcount To 1 Step -1 Selection.Rows(i).Insert Shift:=xlDown Next i End Sub regards Paul On Mar 12, 2:08*pm, smith06374 wrote: I am trying to select a range of cells (2x100apprx). I need to insert a blank cell beneath each existing cell (not an entire row) without having to select each cell individually. I'm sure there is a macro for this, but I have no idea how to create it. Can someone advise how to do this? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excellent! It worked perfectly... thank you so much!
On Mar 12, 2:16*pm, wrote: Hi Try this Sub tester() Dim Rowcount As Long * * Rowcount = Selection.Rows.Count For i = Rowcount To 1 Step -1 * * Selection.Rows(i).Insert Shift:=xlDown Next i End Sub regards Paul On Mar 12, 2:08*pm, smith06374 wrote: I am trying to select a range of cells (2x100apprx). I need to insert a blank cell beneath each existing cell (not an entire row) without having to select each cell individually. I'm sure there is a macro for this, but I have no idea how to create it. Can someone advise how to do this?- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert a function so all the cells hat have crown molding in them | Excel Worksheet Functions | |||
Insert cells function | Excel Worksheet Functions | |||
Insert range of cells with a (UDF) function | Excel Programming | |||
Insert range of cells with a function | Excel Worksheet Functions | |||
after entering insert function my cells run down and off page | Excel Discussion (Misc queries) |