Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default ###Error 57121###

Hi folks,

I dont have much programming experience, but have cobbled together a
data collation model for several users. All have successfully used this with
the exception of one who keeps receiving the following error when attempting
to perform a number of actions : Run-time error 57121- Application-defined or
Object-defined error.

Here are a few pieces of code that are highlighted when the error occurs :

For Each Cell In Worksheets("AllTeams").Range("A2:AB2000")


Sheets("AllTeams").Select


Anybody suggest a cause for this error and any possible solutions?

Thanks

Jim.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default ###Error 57121###

Jimmy.


in your code the
Worksheets("AllTeams") is unqualified = e.g. the workbook is
unspecified, so VBA will use the Activeworkbook.

If your user has a workbook activated that doesn't have the
worksheet.. then this error will popup.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Jimmy wrote :

Hi folks,

I dont have much programming experience, but have cobbled
together a data collation model for several users. All have
successfully used this with the exception of one who keeps receiving
the following error when attempting to perform a number of actions :
Run-time error 57121- Application-defined or Object-defined error.

Here are a few pieces of code that are highlighted when the error
occurs :

For Each Cell In Worksheets("AllTeams").Range("A2:AB2000")


Sheets("AllTeams").Select


Anybody suggest a cause for this error and any possible solutions?

Thanks

Jim.

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
Runtime error 57121 Dave Peterson Excel Discussion (Misc queries) 1 February 26th 08 10:51 AM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM
error 57121 toine Excel Programming 0 December 29th 03 10:10 PM


All times are GMT +1. The time now is 12:57 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"