Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
amy amy is offline
external usenet poster
 
Posts: 10
Default toolbar buttons

Is it possible to create toolbar buttons that will travel
with the spreadsheet when it is emailed to another
person? In this case it is much more convenient to have
the macro buttons on the toolbar than on the spreadsheet
itself, but they are lost when it is emailed to another
user. Is there a way around this?

Thank you,
Amy

  #2   Report Post  
Posted to microsoft.public.excel.programming
amy amy is offline
external usenet poster
 
Posts: 10
Default toolbar buttons

Thank you. These macros need to be available to the user,
but not run upon opening. Is there a way to make the
buttons travel with the file?

Thank you again!
Amy

-----Original Message-----
Amy,

Create the code on your spreadsheet and add a call in the

Workbook_Open to
run the code for the button when the spreadsheet is open.

Obviously that the macros will need to be enabled on the

other PC in order
to run that.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default toolbar buttons

He means create your toolbars with code which is run in the workbook_open
event.

The other method is to attach the toolbar to the workbook.

some references:

http://support.microsoft.com/default...02&Product=xlw
How to customize menus and menu bars in Excel

Here is an article which talks about attaching toolbars:

http://www.microsoft.com/exceldev/articles/toolbatt.htm

Here is an article about creating commandbars with code:
http://msdn.microsoft.com/library/techart/ofcmdbar.htm

Here is another article or two you might find useful:
http://msdn.microsoft.com/library/ba...n_addins97.htm
http://msdn.microsoft.com/library/of...exceladdin.htm
http://www.microsoft.com/exceldev/tips/addins.htm
These are about distributing applications

http://support.microsoft.com/?id=159619
XL97: Sample Macros for Customizing Menus and Submenus

http://support.microsoft.com/?id=213550
XL2000: Sample Macros for Customizing Menus and Submenus


http://support.microsoft.com/default...b;en-us;166755
File Title: Customizing Menu Bars, Menus, and Menu Items in Microsoft(R)
Excel 97
File Name: WE1183.EXE
File Size: 58041 bytes
File Date: 06/20/97
Keywords: kbfile kbappnote
Description: This Application Note can help you learn techniques for writing
Visual Basic(R) for Applications code to customize menus in Microsoft Excel
97. This Application Note contains code examples that you can use with the
following elements: menu bars, menus, menu items, submenus, and shortcut
menus.



--
Regards,
Tom Ogilvy


"Amy" wrote in message
...
Thank you. These macros need to be available to the user,
but not run upon opening. Is there a way to make the
buttons travel with the file?

Thank you again!
Amy

-----Original Message-----
Amy,

Create the code on your spreadsheet and add a call in the

Workbook_Open to
run the code for the button when the spreadsheet is open.

Obviously that the macros will need to be enabled on the

other PC in order
to run that.
.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default toolbar buttons

Amy

The workbook_open code is to build the Toolbar with the buttons on it, not run
the macros.

Currently, if the buttons are on their own Toolbar.........

Attaching the Toolbar through ToolsCustomizeToolbars(select your
toolbar)Attach.

It will travel with the workbook.

Alternative.........create the Toolbar when the file is opened.

This would involve some VBA coding in Workbook-Open Sub

For examples see.....

http://support.microsoft.com/default...EN-US;Q166755&

Gord Dibben Excel MVP




On Mon, 9 Aug 2004 12:56:16 -0700, "Amy"
wrote:

Thank you. These macros need to be available to the user,
but not run upon opening. Is there a way to make the
buttons travel with the file?

Thank you again!
Amy

-----Original Message-----
Amy,

Create the code on your spreadsheet and add a call in the

Workbook_Open to
run the code for the button when the spreadsheet is open.

Obviously that the macros will need to be enabled on the

other PC in order
to run that.
.


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
Buttons in a toolbar Daddio_1962 Excel Discussion (Misc queries) 8 January 15th 08 04:50 AM
Toolbar Buttons bmac Excel Discussion (Misc queries) 2 March 8th 05 11:05 PM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM
Toolbar Buttons Bob Phillips[_5_] Excel Programming 0 August 5th 03 10:34 PM


All times are GMT +1. The time now is 05:58 PM.

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"