Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to easily (!) load Macros from external files on demand?

Assume I have a VB macro for Excel in an external text file mymacro.vb

Now I open a worksheet in Excel and want to have this macro available.

Ok, I could load it with ALT+F11 into Macro Editor and the launch it with lots of menu clicks
but this is somehow cumbersome and unconvenient.

I am searching for a way to (double)click on this macro file or drag it onto Excel and have it
immediately available.

Is something like this possible?

Arthur

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default How to easily (!) load Macros from external files on demand?

Rename it to .bas, and add a button to the VBIDE to import it.

--
__________________________________
HTH

Bob

"Artur McCennon" wrote in message
...
Assume I have a VB macro for Excel in an external text file mymacro.vb

Now I open a worksheet in Excel and want to have this macro available.

Ok, I could load it with ALT+F11 into Macro Editor and the launch it with
lots of menu clicks
but this is somehow cumbersome and unconvenient.

I am searching for a way to (double)click on this macro file or drag it
onto Excel and have it
immediately available.

Is something like this possible?

Arthur



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to easily (!) load Macros from external files on demand?

You may want to take an alternative approach.

Create a workbook with the macro already in it and save it as a Template (*.xlt
or *.xltm). Then instead of starting a empty workbook, use that template file.

One thing nice about this is that you don't have to worry about the user's
security settings (if you share it other users) and you can protect the project
in the template.

Artur McCennon wrote:

Assume I have a VB macro for Excel in an external text file mymacro.vb

Now I open a worksheet in Excel and want to have this macro available.

Ok, I could load it with ALT+F11 into Macro Editor and the launch it with lots of menu clicks
but this is somehow cumbersome and unconvenient.

I am searching for a way to (double)click on this macro file or drag it onto Excel and have it
immediately available.

Is something like this possible?

Arthur


--

Dave Peterson
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
How can I convert *.wk4 files easily into Excel 2007? CurryPanda Excel Discussion (Misc queries) 0 June 4th 08 01:17 PM
easily change external references MikeyS Excel Worksheet Functions 5 August 31st 07 09:38 AM
when importing data from external database does not load into wor. Hari[_2_] Excel Discussion (Misc queries) 0 March 19th 07 03:52 PM
Can I toggle between files easily bweller Excel Discussion (Misc queries) 2 May 25th 06 05:11 PM
External lookups won't load Paul Zipko Excel Discussion (Misc queries) 2 June 24th 05 10:23 PM


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