Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Run a macro problem?

Actually, when you declare a valid Sub, it becomes PART of
the language for all intents and purposes. You would run
it just like you were running any other method (i.e.
CheckSpelling.) You may need to qualify the Sub with the
module it is contained in (i.e. MyModule.MySub).

Hope that helps,
Phil

-----Original Message-----
I have a lengthy code stored in a module and assigned to

a
button. However, I also want that module to run from an
additional button. How can I run this module without
having to copy and paste all that lenghty code into two
places. Is there like a module.execute command?

SDC

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
MACRO Problem Dan Excel Discussion (Misc queries) 1 February 5th 10 11:07 PM
VB Macro Problem Bob1866 Excel Discussion (Misc queries) 1 August 30th 09 06:22 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
macro problem Kevin Excel Discussion (Misc queries) 1 December 14th 04 10:47 PM


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