#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default toolbar

Hello,

I have macros linked to toolbar buttons. When users change
name for the file containing macro, the link breaks up. Is
there a way to make this "link" again automatically?,
without making an add-in and with code?

Thanx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default toolbar

fernando,

There is no automatic way. You need to have VBA code in your workbook that
creates / deletes the toolbar buttons when the workbook is opened / closed.
Post back if you want to use code to do this.

HTH,
Bernie
MS Excel MVP

"fernando" wrote in message
...
Hello,

I have macros linked to toolbar buttons. When users change
name for the file containing macro, the link breaks up. Is
there a way to make this "link" again automatically?,
without making an add-in and with code?

Thanx



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default toolbar

I already have code to create toolbar (dont delete it when
workbook is closed), however I have to run it everytime
the filename is changed. Besides, users open the workbooks
by clicking on the toolbar button..



-----Mensaje original-----
fernando,

There is no automatic way. You need to have VBA code in

your workbook that
creates / deletes the toolbar buttons when the workbook

is opened / closed.
Post back if you want to use code to do this.

HTH,
Bernie
MS Excel MVP

"fernando" wrote in

message
...
Hello,

I have macros linked to toolbar buttons. When users

change
name for the file containing macro, the link breaks up.

Is
there a way to make this "link" again automatically?,
without making an add-in and with code?

Thanx



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default toolbar

fernando,

Try using the file's workbook close event to delete and re-create the
toolbar button, assigning the macro with a full path. If the file's name
has changed, then the macro assignment would also change.

HTH,
Bernie
MS Excel MVP

wrote in message
...
I already have code to create toolbar (dont delete it when
workbook is closed), however I have to run it everytime
the filename is changed. Besides, users open the workbooks
by clicking on the toolbar button..



-----Mensaje original-----
fernando,

There is no automatic way. You need to have VBA code in

your workbook that
creates / deletes the toolbar buttons when the workbook

is opened / closed.
Post back if you want to use code to do this.

HTH,
Bernie
MS Excel MVP

"fernando" wrote in

message
...
Hello,

I have macros linked to toolbar buttons. When users

change
name for the file containing macro, the link breaks up.

Is
there a way to make this "link" again automatically?,
without making an add-in and with code?

Thanx



.



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
excel toolbar like word toolbar, please Meng[_2_] Excel Discussion (Misc queries) 1 May 23rd 09 04:28 PM
Form Toolbar verses Control Toolbar ub Excel Discussion (Misc queries) 3 July 11th 08 10:57 PM
Save Toolbar into new toolbar [email protected] Excel Discussion (Misc queries) 2 March 4th 08 11:16 AM
Adjusting toolbar size, restore toolbar Josh M Excel Discussion (Misc queries) 1 January 18th 06 06:17 PM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM


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