O
onesaint
Hello,
I am running Excel 2k3 and have a weekly payroll sheet that I have t
manually insert 2 rows after every name. I would like to write a v
script to automate this process. The names only appear in the “A
column. So just to make things clear the spread sheet has names dow
the left side, I want to insert 2 rows after each name. ive tried (m
first attempt at programming) to write the script with not a lot o
luck;
Sub InsertRow()
Dim myRange As Range
Set myRange = Worksheets("Sheet1").Range("A:A")
If Range("A:A").Text = ("*") Then
Cells("A:A"). EntireRow.Insert
End If
End Sub
Unfortunately, when I run the script nothing happens. Any help would b
greatly appreciated. Also, if you could explain what the commands tha
you add or remove are and what they do, it would be great. Thanks i
advance.
Kimme
I am running Excel 2k3 and have a weekly payroll sheet that I have t
manually insert 2 rows after every name. I would like to write a v
script to automate this process. The names only appear in the “A
column. So just to make things clear the spread sheet has names dow
the left side, I want to insert 2 rows after each name. ive tried (m
first attempt at programming) to write the script with not a lot o
luck;
Sub InsertRow()
Dim myRange As Range
Set myRange = Worksheets("Sheet1").Range("A:A")
If Range("A:A").Text = ("*") Then
Cells("A:A"). EntireRow.Insert
End If
End Sub
Unfortunately, when I run the script nothing happens. Any help would b
greatly appreciated. Also, if you could explain what the commands tha
you add or remove are and what they do, it would be great. Thanks i
advance.
Kimme