LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,365
Default Is it possible to make an excel macro to work with all sheets?

Glad someone found it useful, especially someone who needed things to work in
just that fashion.

Enjoy.

" wrote:

On Aug 15, 1:48 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)
wrote:
You can do the
same thing EXACTLY except just save the workbook (personal.xls or named
Mymacros.xls as I show below, doesn't matter) in your regular folder. It
will work pretty much the same except that you don't get the automatic
loading of the file that you would if it were in the XLSTART folder.


I am so glad I found this gem with a Google search. Even though it
might seem obvious to you, it was not obvious to me until you
mentioned it. I like this approach much better than setting up
personal.xls. It allows me to adapt macros to new repetitive
situations without having to worry about maintaining backward
compatibility.

Thank you very much for taking the time to explain this step by step.
It turned my tedious error-prone task into a breeze.


----- complete original posting -----

On Aug 15, 1:48 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)
wrote:
OK, you can't create a file to place into the XLSTART folder. You can do the
same thing EXACTLY except just save the workbook (personal.xls or named
Mymacros.xls as I show below, doesn't matter) in your regular folder. It
will work pretty much the same except that you don't get the automatic
loading of the file that you would if it were in the XLSTART folder.

#1) really easy: save a workbook with nothing but that macro (and any others
you might like to keep handy) in your regular My Documents folder. Anytime
you need them, just open that file along with the other files you're working
with. Lets say you call it MyMacros.xls (but personal.xls would be fine
also). You open another workbook, HardWork.xls. With it open, in the same
instance of Excel use File | Open to open up MyMacros.xls. Choose the
HardWork.xls file again and work in it as usual. When you need a macro from
your MyMacros.xls file, just use Tools | Macro | Macros (from the other book,
like the HardWork.xls file) and identify the one you need. The ones in
MyMacros.xls will be listed using both the workbook name and the macro name.



 
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
How do I make an exact copy of my bill work sheets to year 2010 b1hughes Excel Discussion (Misc queries) 1 October 30th 09 09:38 PM
How to make userform work publically with hidden sheets? Zigball Excel Discussion (Misc queries) 7 October 25th 06 03:30 PM
How to make userform work publically with hidden sheets? Zigball Excel Worksheet Functions 7 October 25th 06 03:30 PM
How to make userform work publically with hidden sheets? Zigball Excel Programming 7 October 25th 06 03:30 PM
how do I debug my Excel macro & make it actually WORK? Brainless_in_Boston[_2_] Excel Programming 13 February 16th 06 07:20 PM


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