Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil A.
 
Posts: n/a
Default HOW CAN I AUTOMATICALLY INSERT ALTERNATE BLANK ROWS IN A LIST?

I have a standard list in Excel and I want to insert multiple alternate
blank rows automatically so that these rows can be used for additiional data
at a later stage.

Can anyone offer advice as to how this can be done?

Thanks in advance.
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Phil

"Automatic" requires VBA code.

Sub InsertALTrows()
'David McRitchie, misc 2001-06-30
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim i As Integer
For i = Selection(Selection.Count).Row To Selection(1).Row + 1 Step -1
Rows(i).EntireRow.Insert
Next i
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + R to open Project Explorer.

Find your workbook/project and select it.

Right-click and InsertModule. Paste the above code in there. Save the
workbook and hit ALT + Q to return to your workbook.

Run the macro by going to ToolMacroMacros.


Gord Dibben Excel MVP



On Tue, 19 Apr 2005 06:55:03 -0700, "Phil A." <Phil
wrote:

I have a standard list in Excel and I want to insert multiple alternate
blank rows automatically so that these rows can be used for additiional data
at a later stage.

Can anyone offer advice as to how this can be done?

Thanks in advance.


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
how do i automatically insert the current author's name in a cell. Nolin Excel Worksheet Functions 1 April 8th 05 04:38 AM
Insert date automatically Rick Excel Discussion (Misc queries) 2 March 31st 05 11:49 PM
Activate a macro to insert a row and copy the formuals from the rows above to the blank row oil_driller Excel Discussion (Misc queries) 1 February 11th 05 03:30 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 06:57 PM
Function to automatically insert a new sheet as a result of data entry? Mark Mulik Excel Worksheet Functions 2 November 28th 04 02:21 AM


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

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"