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
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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
Back
Top