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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Workbooks("Test").Activate -> error : Subscribe out of range

Status
Not open for further replies.

ctudose

Programmer
Nov 22, 2001
33
CA
Hi everyone,

Plz,give me an hint.
I've written an application in VBA
On my machive it works ok.If i run the application on other machine I got the following error:

Run-time error 9
Subscribe out of range

in the following line :
Workbooks("Test").Activate , where Test.xls is the name of the Excel file,that holds the macro.
I name is correct...
Plz. help !!
Thanks

 
I've added on the machine that ran the macro the following library : Microsoft VB for Applications Extensibility
It worked.
But,can anyone explain way if I remove back MS VBA Extensibility lib, the macro still runs properly?

Thanks in advance
Cris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top