Hi all, I'm new to VBA and have been working through the livelessons DVD; which has been a great help.. but i have run into a problem which im not sure whats going on.
i have the below line of code:
WSSA.Range(Cells(j, 1), Cells(j, 10)).Interior.ColorIndex = 3
Sometimes when i run the macro it works. but other times i get an error
Runtime 1004 - Method 'Range' of object '_Worksheet' Failed.
I have the below code declared at the top..
Dim WSSA As Worksheet
Set WSSA = Worksheets("Server AppManagers")
Thanks
i have the below line of code:
WSSA.Range(Cells(j, 1), Cells(j, 10)).Interior.ColorIndex = 3
Sometimes when i run the macro it works. but other times i get an error
Runtime 1004 - Method 'Range' of object '_Worksheet' Failed.
I have the below code declared at the top..
Dim WSSA As Worksheet
Set WSSA = Worksheets("Server AppManagers")
Thanks