Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ed ed is offline
external usenet poster
 
Posts: 59
Default Macro button

Hi

I have a custom tool bar button assigned to a macro to
format a remittance advice.

The macro runs through 5 other macros in order ending up
with it saving the remittance to another sheet.

If i run the macros separately they run fine. If i run the
macro that loads the other macros from the macro screen it
works fine but when i run it from the custom toolbar
button it opens up another sheet as well as running my
other macros!!!

Does any one have any idea why this may be happening.

Thanks

ed

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macro button

sounds like it might have to do with some unqualifed references. When run
from the button they may not refer to what you would think. This would be
particularly true if the code is in a worksheet module. Unless the code is
related to events in the worksheet, it should be in a general module.

--
Regards,
Tom Ogilvy

"Ed" wrote in message
...
Hi

I have a custom tool bar button assigned to a macro to
format a remittance advice.

The macro runs through 5 other macros in order ending up
with it saving the remittance to another sheet.

If i run the macros separately they run fine. If i run the
macro that loads the other macros from the macro screen it
works fine but when i run it from the custom toolbar
button it opens up another sheet as well as running my
other macros!!!

Does any one have any idea why this may be happening.

Thanks

ed



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
Use Macro To Change Which Macro Assigned To Command Button CVinje Excel Discussion (Misc queries) 0 May 25th 10 09:55 PM
Using Macro to sort without clicking on macro button dd Excel Discussion (Misc queries) 3 May 3rd 07 06:00 PM
use macro button to run macro in protected sheet earl Excel Discussion (Misc queries) 3 February 26th 06 10:21 PM
F9 Button Macro Andrew McLeod Excel Discussion (Misc queries) 2 November 23rd 05 11:20 PM
Macro Button Maggie Excel Discussion (Misc queries) 3 June 28th 05 04:29 AM


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