C
CMK
Hi everyone.
I hope you can help me with this....
I have the following macro saved in my personal.xls file:
Dim Myrange As Range, r As Object
Set Myrange = ActiveSheet.Range("RowHeight")
Application.ScreenUpdating = False
For Each r In Myrange.Rows
If r.Row Mod 5 = 0 Then
r.RowHeight = 24
Else
End If
Next r
Application.ScreenUpdating = True
End Sub
It was saved to be used in "ALL OPEN WORKBOOKS"
I work with a lot of templates...and pre existing files. The macro
works great in both cases. However, if I create a new worksheet....it
doesn't work. I get a runtime error '1004'.
Can anyone tell me how I can get it to work in the new
worksheets/workbooks.
Thanx.
PS. I am using Excel 2000, on Win2000 machines in a network
environment.
Chris
I hope you can help me with this....
I have the following macro saved in my personal.xls file:
Dim Myrange As Range, r As Object
Set Myrange = ActiveSheet.Range("RowHeight")
Application.ScreenUpdating = False
For Each r In Myrange.Rows
If r.Row Mod 5 = 0 Then
r.RowHeight = 24
Else
End If
Next r
Application.ScreenUpdating = True
End Sub
It was saved to be used in "ALL OPEN WORKBOOKS"
I work with a lot of templates...and pre existing files. The macro
works great in both cases. However, if I create a new worksheet....it
doesn't work. I get a runtime error '1004'.
Can anyone tell me how I can get it to work in the new
worksheets/workbooks.
Thanx.
PS. I am using Excel 2000, on Win2000 machines in a network
environment.
Chris