Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Macro works for some users and not others

Hello,

I have a macro that runs Ok for me but crashes out with a runtime error for
a colleague. The macro opens another spreadsheet, searches through a list
for a match and then copies information back to the original spreadheet. It
runs fine for me but my colleague gets a runtime error9.
We are using the same version of excel.
Has anyone got any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Macro works for some users and not others

Do all users have the same file structure?
--
Gary''s Student
gsnu200710


"kfell" wrote:

Hello,

I have a macro that runs Ok for me but crashes out with a runtime error for
a colleague. The macro opens another spreadsheet, searches through a list
for a match and then copies information back to the original spreadheet. It
runs fine for me but my colleague gets a runtime error9.
We are using the same version of excel.
Has anyone got any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Macro works for some users and not others

Yep, same file structure we're opening it from the same place and using the
same files.

"Gary''s Student" wrote:

Do all users have the same file structure?
--
Gary''s Student
gsnu200710


"kfell" wrote:

Hello,

I have a macro that runs Ok for me but crashes out with a runtime error for
a colleague. The macro opens another spreadsheet, searches through a list
for a match and then copies information back to the original spreadheet. It
runs fine for me but my colleague gets a runtime error9.
We are using the same version of excel.
Has anyone got any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Macro works for some users and not others

but my colleague gets a runtime error9.

You should always report the text of the error message, if there is any.
Codes do not usually mean one specific thing.

--
Jim
"kfell" wrote in message
...
| Hello,
|
| I have a macro that runs Ok for me but crashes out with a runtime error
for
| a colleague. The macro opens another spreadsheet, searches through a list
| for a match and then copies information back to the original spreadheet.
It
| runs fine for me but my colleague gets a runtime error9.
| We are using the same version of excel.
| Has anyone got any ideas?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Macro works for some users and not others

Sorry. Run time Error 9 - subscript out of range

"Jim Rech" wrote:

but my colleague gets a runtime error9.


You should always report the text of the error message, if there is any.
Codes do not usually mean one specific thing.

--
Jim
"kfell" wrote in message
...
| Hello,
|
| I have a macro that runs Ok for me but crashes out with a runtime error
for
| a colleague. The macro opens another spreadsheet, searches through a list
| for a match and then copies information back to the original spreadheet.
It
| runs fine for me but my colleague gets a runtime error9.
| We are using the same version of excel.
| Has anyone got any ideas?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Macro works for some users and not others

You should be able to debug this when the debugger stops on the line of code
that generates this error. That line is a roadmap to the problem.

For example:

Worksheets("abc").Select

will generate this exact message if there is no worksheet named "abc" in the
active workbook.

Something is missing when the code is run on the problem machines but we
can't say what it is without seeing the code. But I encourage you to try to
figure it out<g.

--
Jim
"kfell" wrote in message
...
| Sorry. Run time Error 9 - subscript out of range
|
| "Jim Rech" wrote:
|
| but my colleague gets a runtime error9.
|
| You should always report the text of the error message, if there is any.
| Codes do not usually mean one specific thing.
|
| --
| Jim
| "kfell" wrote in message
| ...
| | Hello,
| |
| | I have a macro that runs Ok for me but crashes out with a runtime
error
| for
| | a colleague. The macro opens another spreadsheet, searches through a
list
| | for a match and then copies information back to the original
spreadheet.
| It
| | runs fine for me but my colleague gets a runtime error9.
| | We are using the same version of excel.
| | Has anyone got any ideas?
|
|
|


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Macro works for some users and not others

They haven't happened to change the list separator character on the
problem PC?

kfell wrote:

Sorry. Run time Error 9 - subscript out of range

"Jim Rech" wrote:


but my colleague gets a runtime error9.


You should always report the text of the error message, if there is any.
Codes do not usually mean one specific thing.

--
Jim
"kfell" wrote in message
...
| Hello,
|
| I have a macro that runs Ok for me but crashes out with a runtime error
for
| a colleague. The macro opens another spreadsheet, searches through a list
| for a match and then copies information back to the original spreadheet.
It
| runs fine for me but my colleague gets a runtime error9.
| We are using the same version of excel.
| Has anyone got any ideas?




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
Email Macro only sometime works? PaulW Excel Discussion (Misc queries) 0 August 15th 06 10:22 AM
Macro works but buttons don't markvi Excel Discussion (Misc queries) 0 June 8th 06 09:19 PM
How can I disable macro security for all users at once? Anubis666 Excel Discussion (Misc queries) 1 April 28th 06 09:45 AM
Tab-naming macro only works once :-( Stilla Excel Worksheet Functions 3 February 10th 06 03:09 PM
macro works for some users and doesn't for others Pooja Excel Discussion (Misc queries) 2 October 27th 05 08:27 PM


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

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"