Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Advanced Insert Cells Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Advanced Insert Cells Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Advanced Insert Cells Function?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Advanced Insert Cells Function?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
insert a function so all the cells hat have crown molding in them Cal Excel Worksheet Functions 1 August 8th 09 01:05 AM
Insert cells function Tom Haskell Excel Worksheet Functions 3 June 19th 09 05:06 PM
Insert range of cells with a (UDF) function firsttimer Excel Programming 2 May 29th 07 01:11 PM
Insert range of cells with a function firsttimer Excel Worksheet Functions 2 May 29th 07 09:43 AM
after entering insert function my cells run down and off page ced Excel Discussion (Misc queries) 1 February 18th 07 05:41 PM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"