Macro won't run in the newer version

G

Guest

Ever since I had newer version of Excel installed I can’t run macro
which was executing perfectly before an update.
Excel version: 2003 SP2
VB version: 6.3 9972

Below is the code, which always shows as a stopper ….

Workbooks("SummaryMaster2").Activate
Workbooks("SummaryMaster2").Sheets("Main").Select

And the error message is
“Run-time error ‘9’
Subscript out of rangeâ€


Any help will be greatly appreciated.

TC
 
D

Don Guillett

Are you sure? Did you forget .xls?

with Workbooks("SummaryMaster2.xls")
.Activate
.Sheets("Main").Select
end with
 
G

Guest

Don,

Thank you for responding. I had tried this before and
it didn't work. I had tried one more time as you suggested below
but it didn't work. Could you suggest anything else?
This macro is working on version SP1
I'll appreciate any help.

Teresa
 
G

Guest

Thank you Don.

I had forgotten about other places in the program that
should be changed as well. Your advice did help somehow,
although I think there must be other problems.
It did started the program however the macro is not
being executed as was the case in my older version.
Would you know of any change in syntax conventions?
Or, do I need any additional program tools installed on my computer?
Thank you enormously for your help.
Any other suggestions will be welcomed.
Thank you.

Teresa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top