Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
excelmam
 
Posts: n/a
Default how do I add rows to a very large spreadsheet

I have an excel question. I have a huge spreadsheet that I need to insert two
blank lines after every two lines. Then I need to insert a formula on those
two blank lines.
Does anyone know how I might save time and complete this task w/o adding it
in manually after every two lines.
  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi

This is what a macro does. But you'd need to know how to write a macro that
does this. Or have someone else write it. But this person would need an
awfully detailed description of this task., like which row numbers, what is
in the cells where, which exact formula should go where and why, ... If you
can describe this, post it in microsoft.public.excel.programming for
suggestions.

HTH. Best wishes Harald

"excelmam" skrev i melding
...
I have an excel question. I have a huge spreadsheet that I need to insert

two
blank lines after every two lines. Then I need to insert a formula on

those
two blank lines.
Does anyone know how I might save time and complete this task w/o adding

it
in manually after every two lines.



  #3   Report Post  
dominicb
 
Posts: n/a
Default


Good evening Excelmam

Good news and bad news. The good news is, inserting two blank lines
after each line is pretty easy. The formula bit isn't. The code below
will take a block of data 150 lines long and add two blank rows after
each line, making it 450 lines long. You haven't given much info here,
so I don't know how many lines you are trying to work on:

Sub Test()
For f = 1 To 150 Step 2
Rows(f).Select
Selection.Insert Shift:=xlDown
f = f + 1
Rows(f).Select
Selection.Insert Shift:=xlDown
ActiveSheet.Paste
Next f
End Sub

The code is a little bit messy I know, but for a one off job it will do
the trick. I'll have to think a bit harder about the formulae bit, but
you'll need to supply more information, like what the formulae are
going to be, how many, etc...?

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=377562

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
Adding five new rows every 40 rows in a spreadsheet? Olzki Excel Discussion (Misc queries) 8 May 18th 07 02:14 AM
how do I unhide Excel 2003 spreadsheet rows with usual method. Sandy Excel Discussion (Misc queries) 2 July 13th 05 09:30 PM
How do I identify dulicate rows in a spreadsheet? Spyder Excel Discussion (Misc queries) 1 April 27th 05 11:53 PM
Row selections by row # OR by even/odd rows in another spreadsheet Tom Excel Discussion (Misc queries) 0 February 9th 05 04:03 PM
Data Filter - Not all rows in spreadsheet will display in Autofilt Excel Help Excel Worksheet Functions 1 November 17th 04 05:40 PM


All times are GMT +1. The time now is 10:24 AM.

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

About Us

"It's about Microsoft Excel"