F
Frank McLellan
I do know of another way to accomplish this but I thought that this would
work
I declared a variable as
Public newsheet as Object
Before getting into the body of the macro I initialize a series of values.
To initialize values I use Select Case where I've entered the code
Case X
Set newsheet = Sheets("Page G.6")
Case Y
Set newsheet = Sheets("Page L.13")
When I run the macro I get a run time error - subscript out of range (-9)
This looks like an array error but I have declared the variable as an
Object. I've stepped through the macro and the macro fails the first time it
gets to "Set newsheet..." in the initialization phase.
What am I missing??
work
I declared a variable as
Public newsheet as Object
Before getting into the body of the macro I initialize a series of values.
To initialize values I use Select Case where I've entered the code
Case X
Set newsheet = Sheets("Page G.6")
Case Y
Set newsheet = Sheets("Page L.13")
When I run the macro I get a run time error - subscript out of range (-9)
This looks like an array error but I have declared the variable as an
Object. I've stepped through the macro and the macro fails the first time it
gets to "Set newsheet..." in the initialization phase.
What am I missing??