PC Review


Reply
Thread Tools Rate Thread

CREATE AN EMPTY ROWS

 
 
lbrrenga
Guest
Posts: n/a
 
      21st Jul 2007
Hi,

Can you please guide me how to create an empty rows (by using macros)
in a spread sheet contains 300 rows of data?

Thanks

Renga

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      21st Jul 2007
On row in one place?

Rows(200).Insert

Many rows in one place?

Rows(200).Resize(10).Insert

One row in many places?

For i = 1 To 300 Step 20
Rows(i).Insert)
Next i

Many rows in many places?

For i = 1 To 300 Step 20
Rows(i).Resize(5).Insert)
Next i

--
HTH

Bob

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

"lbrrenga" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Can you please guide me how to create an empty rows (by using macros)
> in a spread sheet contains 300 rows of data?
>
> Thanks
>
> Renga
>



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      21st Jul 2007
Typo alert.

Don't include the closing paren ")" after the .insert

Bob Phillips wrote:
>
> On row in one place?
>
> Rows(200).Insert
>
> Many rows in one place?
>
> Rows(200).Resize(10).Insert
>
> One row in many places?
>
> For i = 1 To 300 Step 20
> Rows(i).Insert)
> Next i
>
> Many rows in many places?
>
> For i = 1 To 300 Step 20
> Rows(i).Resize(5).Insert)
> Next i
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "lbrrenga" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Can you please guide me how to create an empty rows (by using macros)
> > in a spread sheet contains 300 rows of data?
> >
> > Thanks
> >
> > Renga
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hpw do I delete multiple empty rows found between filled rows? Bill Microsoft Excel Worksheet Functions 1 15th Nov 2009 12:52 AM
create a summary page that will take a list and remove empty rows Dematic slave Microsoft Excel Misc 3 19th Sep 2008 12:15 AM
Delete Rows with Empty Cells with empty column 1 Scott Microsoft Excel Programming 6 2nd Oct 2006 11:57 PM
How do I sort with empty rows between none empty rows? =?Utf-8?B?RXhjZWwgQ2hhbGxlbmdlZA==?= Microsoft Excel Worksheet Functions 1 17th Aug 2006 03:59 PM
Pivot Tables: How do I show ALL field rows, including empty rows?? ekongirl@gmail.com Microsoft Excel Worksheet Functions 2 8th Apr 2005 06:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 PM.