Insert a Row at a predetermined location

JCScoobyRS

Board Regular
Joined
Sep 17, 2002
Messages
102
I need to be able to insert a row at a predetermined spot. After the row is inserted, I need to have it's first cell's value to be PROCCESSES, the second cell's value to be SET UP and the third cell's value to be PARTS. Can anyone help? Thanks, Jeremy
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
On 2002-09-20 14:02, JCScoobyRS wrote:
I need to be able to insert a row at a predetermined spot. After the row is inserted, I need to have it's first cell's value to be PROCCESSES, the second cell's value to be SET UP and the third cell's value to be PARTS. Can anyone help? Thanks, Jeremy

Hi Jeremy:

The following SUB should be added to the module of a workbook ...

Sub InsertRow1()
'
' InsertRow1 Macro
' Macro by Yogi Anand
'
' Keyboard Shortcut: Ctrl+Shift+J
'
Selection.EntireRow.Insert
ActiveCell.FormulaR1C1 = "PROCESSES"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "SET UP"
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "PARTS"
ActiveCell.Offset(0, 1).Range("A1").Select
End Sub

I hope this helps.

Regards!

Yogi
 

YARNOS

New Member
Joined
Aug 26, 2002
Messages
21
I think we have the same concerns i am writing a timesheet and i don't know were the day will finish to create the subtotal so i use one time sheet per day are we talking about the same issue email me yarnos@bigpond.com
 

Watch MrExcel Video

Forum statistics

Threads
1,122,461
Messages
5,596,276
Members
414,051
Latest member
tabecker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top