Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Distributing A Custom Menu

Excel 2003, Win XP:

Okay, I'll admit, I'm something of a newbie at Excel programming.

I've created a custom menu which runs a series of macros. Can I
distribute these to other users within my network by saving them out to
a shared directory? How, in general, would I go about distributing a
custom menu and the macros that the menu is supposed to run?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Distributing A Custom Menu

Build them as an add-in.
http://www.fontstuff.com/vba/vbatut03.htm

Fester Bestertester wrote:
Excel 2003, Win XP:

Okay, I'll admit, I'm something of a newbie at Excel programming.

I've created a custom menu which runs a series of macros. Can I
distribute these to other users within my network by saving them out to
a shared directory? How, in general, would I go about distributing a
custom menu and the macros that the menu is supposed to run?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Distributing A Custom Menu

I'd save the file as an addin (*.xla).

Then either place that file in a common network share (easier for updating) and
have the users use Tools|Addins to install it (or just tell them to open it when
they need it).

But you could email it to them and tell them to store it on their local drive
(useful if some users are not always connected to the network).

If you have UDFs called from worksheet cells, I'd tell them to put the file in a
specific folder on their C: drive (C:\FesterUtils\addinnamehere.xla). Then they
could install via tools|addins or just double click when they need it (same as
before).

It'll make sharing workbooks easier. You won't have to answer questions why the
UDFs can't be found and how to change the links so that the point to the correct
location.

For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm

Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)



Fester Bestertester wrote:

Excel 2003, Win XP:

Okay, I'll admit, I'm something of a newbie at Excel programming.

I've created a custom menu which runs a series of macros. Can I
distribute these to other users within my network by saving them out to
a shared directory? How, in general, would I go about distributing a
custom menu and the macros that the menu is supposed to run?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Distributing A Custom Menu

Dave Peterson wrote:


For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm


Thanks, this one actually works really nicely. I edited the file so that
it has the macros I want, then edited the menu creation data sheet to
fit my macros. I saved the .xls, then also saved it as a .xla, to a
shared directory. Then I went around and pointed everybody's Excel
application to that shared .xla (not the duplicate one it wants to place
on the user's local Addins folder).

When I need to make changes, I edit the .xls and save it, then kick
everybody off Excel just long enough to also save it as the .xla. The
result is that the next time anybody opens Excel, the changes are available.

Pretty nice!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Distributing A Custom Menu

Just wondering why you saved is as a .xls file at all.

Maybe to make the saving easier?



Fester Bestertester wrote:

Dave Peterson wrote:


For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm


Thanks, this one actually works really nicely. I edited the file so that
it has the macros I want, then edited the menu creation data sheet to
fit my macros. I saved the .xls, then also saved it as a .xla, to a
shared directory. Then I went around and pointed everybody's Excel
application to that shared .xla (not the duplicate one it wants to place
on the user's local Addins folder).

When I need to make changes, I edit the .xls and save it, then kick
everybody off Excel just long enough to also save it as the .xla. The
result is that the next time anybody opens Excel, the changes are available.

Pretty nice!


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Distributing A Custom Menu

Dave Peterson wrote:
Just wondering why you saved is as a .xls file at all.

Maybe to make the saving easier?


When I first downloaded and opened the menumaker.exe, it produced a .xls
file with the MenuSheet worksheet, which allows me to edit the menu.
Then, after making all my menu edits and adding all my macros to the
code, I also saved it as a .xla.

When I opened the .xla, I discovered that, because it's an add-in file
(?), the menusheet worksheet was not available. So it appears that if I
want to modify the menu, I have to do it via the worksheet in the .xls.

This suits me fine anyway, since I have users who run Excel all day
long, and the .xla addin file is on a shared directory. So with this
approach, I can edit the menu and macros whenever I want, and I only
need to kick the users off of Excel for the one minute or so that it
takes to copy it over as an .xla again.
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Distributing A Custom Menu

You can toggle the workbook from addin to not-addin via:

Inside the VBE
select the ThisWorkbook module of your project
Hit F4 to see the properties
Look for IsAddin
and toggle true/false to what you need.



Fester Bestertester wrote:

Dave Peterson wrote:
Just wondering why you saved is as a .xls file at all.

Maybe to make the saving easier?


When I first downloaded and opened the menumaker.exe, it produced a .xls
file with the MenuSheet worksheet, which allows me to edit the menu.
Then, after making all my menu edits and adding all my macros to the
code, I also saved it as a .xla.

When I opened the .xla, I discovered that, because it's an add-in file
(?), the menusheet worksheet was not available. So it appears that if I
want to modify the menu, I have to do it via the worksheet in the .xls.

This suits me fine anyway, since I have users who run Excel all day
long, and the .xla addin file is on a shared directory. So with this
approach, I can edit the menu and macros whenever I want, and I only
need to kick the users off of Excel for the one minute or so that it
takes to copy it over as an .xla again.


--

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
distributing an Excel custom button [email protected] Excel Discussion (Misc queries) 2 March 28th 07 02:12 PM
Help with distributing custom toolbar Doug Excel Programming 1 September 26th 06 03:37 PM
Adding Sub Menu Item to Current Custom Menu Renato Excel Programming 2 December 19th 05 12:48 AM
VBA - Disappearing custom menu and custom toolbar Peter[_50_] Excel Programming 2 December 2nd 04 06:09 PM
Custom Menu return to Excel Menu upon Closing VetcalcReport Excel Programming 2 August 2nd 04 02:59 PM


All times are GMT +1. The time now is 07:45 PM.

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"