Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Inserting 3 blanco rows

Hi,

I have a sheet with data. Based on a selection i want to insert 3 blanco
rows on top of the already existing information. So normally I have row 1 to
xxx filled, and I now need 3 blanco rows to insert from row 1 to 3. Any code
for that?!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Inserting 3 blanco rows

As simple as

Rows("1:3").Insert

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Basta1980" wrote in message
...
Hi,

I have a sheet with data. Based on a selection i want to insert 3 blanco
rows on top of the already existing information. So normally I have row 1
to
xxx filled, and I now need 3 blanco rows to insert from row 1 to 3. Any
code
for that?!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Inserting 3 blanco rows

Its also the sort of thing you can use the Macro Recorder for. Although the
code will probably be 10 lines long instead of 1, it can give you an idea how
it works :)

"Bob Phillips" wrote:

As simple as

Rows("1:3").Insert

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Basta1980" wrote in message
...
Hi,

I have a sheet with data. Based on a selection i want to insert 3 blanco
rows on top of the already existing information. So normally I have row 1
to
xxx filled, and I now need 3 blanco rows to insert from row 1 to 3. Any
code
for that?!




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
IF 0 then blanco mariekek5 Excel Discussion (Misc queries) 3 June 24th 09 05:16 PM
Copying & Inserting Rows w/o Affecting other Rows Etc. LRay67 Excel Worksheet Functions 1 October 22nd 08 02:10 AM
Inserting Blank rows after every row upto 2500 rows Manju Excel Worksheet Functions 8 August 22nd 06 12:54 PM
Why is inserting rows throwing off my hidden rows jgeniti[_2_] Excel Programming 4 March 9th 06 11:25 PM
Inserting multiple rows in excel with data in consecutive rows technotronic Excel Programming 2 October 20th 05 03:12 PM


All times are GMT +1. The time now is 06:37 PM.

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"