Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Subscript out of range problem

hi,
you get that error when you tell xl to do something it
cann't do.
i am suspecting this line:
Windows("C C Schedule Regular.xls").Activate
i am guessing but is the file name spelled correctly.
If xl opened "Cat.xls" then xl found that file
otherwise xl can't fine "c c schedule regular.xls" to
activate.

-----Original Message-----
The following lines of code yield a "Subscript out of

range" error 9.


Workbooks.Open Filename:= _
"C:\My Documents\cat.xls"
Windows("C C Schedule Regular.xls").Activate

Both xls documents are in the same folder and spelling

including spaces has
been verified as correct. Why does this yield a Subscipt

out of range error?

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subscript out of range OKHM Excel Discussion (Misc queries) 0 August 6th 09 05:18 PM
Subscript out of range problem JE McGimpsey Excel Programming 0 September 15th 04 05:55 PM
Subscript out of range Ed Excel Programming 1 February 5th 04 07:17 PM
Excel Macro Problem, Add-in need to work in every workbook & Error:9 Subscript out of range Burak[_2_] Excel Programming 1 October 31st 03 08:09 PM
Subscript Out of Range John Wilson Excel Programming 2 September 7th 03 04:07 AM


All times are GMT +1. The time now is 04:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"