Hi again
I have a problem with some code I wrote working fine on my and several other PCs but not working on a few other isolated PCs. I have had a look and the references are all the same on both the working and non working PCs.
VBA, Excel 9.0 Object Library, OLE Automation and MS Office 9.0 Object library.
Can anyone suggest any other areas I should check.
Below is the code sample:
For Cnter = 1 To Worksheets("Hard-Micro"
.HPageBreaks.Count
Found = False
Range(Worksheets(1).HPageBreaks(Cnter).Location.Address).Select
'This is where I get a subscript out of range problem
Next
Thanks very much.
I have a problem with some code I wrote working fine on my and several other PCs but not working on a few other isolated PCs. I have had a look and the references are all the same on both the working and non working PCs.
VBA, Excel 9.0 Object Library, OLE Automation and MS Office 9.0 Object library.
Can anyone suggest any other areas I should check.
Below is the code sample:
For Cnter = 1 To Worksheets("Hard-Micro"
Found = False
Range(Worksheets(1).HPageBreaks(Cnter).Location.Address).Select
'This is where I get a subscript out of range problem
Next
Thanks very much.