I have a single workbook application with 3 procedures and 1 function. One procedure calls the other two iteratively
When I try to reference a sheet using a statement like Worksheets("Data").Range("A1")... i get one of two messages
0ne is "subscript out of range" and the other is 'select method of range class failed" I have test code below that I put in the same workbook and executed and got 'select method of range class failed" from the first statement tried to execute.
Sub test()
Worksheets("Data").Range("C5:C215").Select
Worksheets("CompositePDF").Range("C5:C215").Select
Worksheets("FitPDFsht").Range("C5:C215").Select
End Sub
Suggestions are most welcome as I am getting frustrated!
Thanks
When I try to reference a sheet using a statement like Worksheets("Data").Range("A1")... i get one of two messages
0ne is "subscript out of range" and the other is 'select method of range class failed" I have test code below that I put in the same workbook and executed and got 'select method of range class failed" from the first statement tried to execute.
Sub test()
Worksheets("Data").Range("C5:C215").Select
Worksheets("CompositePDF").Range("C5:C215").Select
Worksheets("FitPDFsht").Range("C5:C215").Select
End Sub
Suggestions are most welcome as I am getting frustrated!
Thanks