ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inserting 3 blanco rows (https://www.excelbanter.com/excel-programming/411146-inserting-3-blanco-rows.html)

Basta1980

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?!

Bob Phillips

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?!




PaulW

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?!






All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com