WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

macros do not work in all workbook worksheets

 
   Home -> Office -> General Protection Fault Errors RSS
Next:  One row printing on every page  
Author Message
natashau

External


Since: Aug 12, 2008
Posts: 1



(Msg. 1) Posted: Tue Aug 12, 2008 12:09 pm
Post subject: macros do not work in all workbook worksheets
Archived from groups: microsoft>public>excel>crashesgpfs (more info?)

My excel workbook has 14 sheets, 12 of which hold data for each month of the
year:Jan-Dec.
I created macros in Aug and assigned quick access buttons to these macros.
They work fine when I run in worksheet:Aug however they do not work in any of
my other worksheets. I get a "run-time error '1004': Application-defined or
object defined error".

I created a test macro in worksheet:Sept and then tried to run it in Aug and
Oct however received the same error msg. It seems that my macros seem to be
exculusive to the worksheets that they were created in rather than work in
all the worksheets in my workbook.

Does anyone have any tips on how to make my macros work in any worksheet
that I choose to run in?
Back to top
Login to vote
Barb Reinhardt

External


Since: Aug 01, 2006
Posts: 1349



(Msg. 2) Posted: Thu Aug 14, 2008 2:12 pm
Post subject: RE: macros do not work in all workbook worksheets [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It's hard to give tips without seeing the code. If you recorded the macro,
the worksheet names are probably hardcoded.
--
HTH,
Barb Reinhardt



"natashau" wrote:

> My excel workbook has 14 sheets, 12 of which hold data for each month of the
> year:Jan-Dec.
> I created macros in Aug and assigned quick access buttons to these macros.
> They work fine when I run in worksheet:Aug however they do not work in any of
> my other worksheets. I get a "run-time error '1004': Application-defined or
> object defined error".
>
> I created a test macro in worksheet:Sept and then tried to run it in Aug and
> Oct however received the same error msg. It seems that my macros seem to be
> exculusive to the worksheets that they were created in rather than work in
> all the worksheets in my workbook.
>
> Does anyone have any tips on how to make my macros work in any worksheet
> that I choose to run in?
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> General Protection Fault Errors All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET