Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Subscript out of range error

Do you use syntax like

Workbooks("Myworkbook").Worksheets("Sheet1")

If so, then
Workbooks("Myworkbook") is the cause (assuming you have a sheet1)

Always use the extension and you won't have problems

Workbooks("Myworkbook.xls").Worksheets("Sheet1")

--
Regards,
Tom Ogilvy

Steve wrote in message news:3fd64963$0$1440$afc38c87@...
Hello everyone. Is there any reason why a module will run fine on my
machine, but others who try to run it get a run time error 9 - subscript

out
of range error? Is there a setting that needs to be adjusted on their
machines?

Thanks!

-Steve





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
Error:Subscript out of range Jay Excel Discussion (Misc queries) 1 April 10th 08 10:25 PM
Subscript out of range error moglione1 Excel Discussion (Misc queries) 2 August 30th 05 01:21 PM
Help on subscript out of range error (VB6/VBA) farmer[_2_] Excel Programming 2 November 2nd 03 04:19 PM
Subscript out of range error Chris M.[_3_] Excel Programming 1 August 27th 03 05:03 PM
Subscript out of range error Gary[_4_] Excel Programming 1 August 13th 03 07:20 AM


All times are GMT +1. The time now is 11:34 AM.

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"