LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default Annoying Problem - Subscript out of range

Anthony wrote:
Hi,

The problem I am having is only occurring on 2 pc's. I have run the code
on numerous other machines with no issues, but the annoying thing is I need
it to run it on one of the pc's that is having the subscript out of range
error.

I have attached the two spreadsheets. The master file is meant to open up
the office file and load in any information. The code is written so the user
can select multiple files and it will work its way through them.

The code is not very fancy but it was something I was putting together in a
hurry and I was going to go back through the code and clean it up etc.

What I don't understand is on the machines it failed on, the code in module
2 (Button2_click) fails during the function; e.g (sample of what I have
descriped)


fname="Tracker file"
Workbooks.open(fname) 'ok
Workbooks(fname).sheets("sheet1").select 'fails - subscript out of range

Any help would be gratefully received.

I apologise for having to attach files.

Anthony

p.s password is dragon1




different regional setting and "sheet1" is not "sheet1" ?
 
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
Annoying Problem Mark Dullingham Excel Programming 0 May 16th 06 01:48 AM
Subscript out of range problem Tom Ogilvy Excel Programming 0 September 15th 04 06:00 PM
Subscript out of range problem No Name Excel Programming 0 September 15th 04 05:56 PM
Subscript out of range problem JE McGimpsey Excel Programming 0 September 15th 04 05:55 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


All times are GMT +1. The time now is 08:22 AM.

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

About Us

"It's about Microsoft Excel"