LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Application Level macros

"modjoe23"
wrote in message
...

Thank you guys for your replies. However, my question was how to
create a macro that is universal. Maybe an example would simplify
what I'm trying to accomplish. I would like to have a button, for
example Set Autofilter On that can be run any time i use excel and
with any workbook to set the autofilter to ON. I know how to create
the menubars and all I just don't know how to the macro application
specific rather than workbook or worksheet specific. I hope this is
clearer. Thanks


Hi,

Bob's reply was the answer you are looking for.

All code must exist within a workbook in some way.

That workbook could be personal.xls (which is usually hidden by
default) or perhaps in an add-in (xla).

If you always want the button to be available, the approach is to use
one of those options with personal.xls probably being best if you want
it only available to yourself, and an add-in a better approach if you
want to distrinbute it to others.

Perhaps a better question for us to ask would be, in what way does
that not meet your requirements? Personal.xls could be used (as per
the example in Dave's post) to create a menubar button each time excel
is opened (no matter what workbook(s) are opened with the excel
application or later) that would turn on an autofilter.

HTH,

Alan.






 
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
Application level event help John Bundy Excel Discussion (Misc queries) 2 January 15th 08 10:30 PM
Application.FileSearch on only one level of sub folders Crustysquirrel Excel Programming 3 August 3rd 05 09:18 AM
Declare at application level MD Excel Programming 1 June 28th 05 06:23 PM
Application Level Events Question nickg420[_4_] Excel Programming 3 July 16th 04 05:02 PM
Application level events no longer execute R Avery Excel Programming 1 June 4th 04 01:21 AM


All times are GMT +1. The time now is 09:28 AM.

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"