Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Runtime error 9 subscript out of range 1

Status
Not open for further replies.

vba317

Programmer
Mar 5, 2009
708
US
I have a workbook with 4 tabs in it. When I open the workbook template I have no issues. When I try to move to the next tab I get the Runtime error 9 subscript out of range error on the following code. Any help is appreciated.

Tom

Code:
Public goXl As Excel.Application 

goXl.Sheets(DenialBalGrid_RejCat).Select
 
I did a rename and copy and paste to drop the name of the sheet between the ().
 
copy and paste to drop the name of the sheet between the ().

Code:
goXl.Sheets([highlight]"[/highlight]DenialBalGrid_RejCat[highlight]"[/highlight]).Select


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top