Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Custom button-lock

I noticed that when creating a custom button to start a macro it
doesn't always work. Sometime the custom button will be looking at a
different file. Is there anyway to just lock that button to only that
one macro and if it's not in that file then don't run. What's
happening is I move the excel file and then the custom button won't
work. Or if I rename the file the custom button will rename
automatically even if I don't want it to. Basically, if I have two
workbooks which ever is activate the button looks in that notebook and
then neither buttons on both workbooks work correctly. I hope someone
can understand what I'm saying and can help. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Custom button-lock

If the the workbook with the button is open and you change the workbook that
the button refers to, the reference will adjust. Avoid that condition. If
the workbook with the button is closed, then you can make all the changes you
want and the button will not change.

--
Regards,
Tom Ogilvy


" wrote:

I noticed that when creating a custom button to start a macro it
doesn't always work. Sometime the custom button will be looking at a
different file. Is there anyway to just lock that button to only that
one macro and if it's not in that file then don't run. What's
happening is I move the excel file and then the custom button won't
work. Or if I rename the file the custom button will rename
automatically even if I don't want it to. Basically, if I have two
workbooks which ever is activate the button looks in that notebook and
then neither buttons on both workbooks work correctly. I hope someone
can understand what I'm saying and can help. Thanks


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 do I undo the scroll lock, thscroll lock button does not work scroll lock Excel Discussion (Misc queries) 3 July 19th 08 10:17 PM
2003 - 2007 custom macro and custom button restore. Scott Sornberger Excel Discussion (Misc queries) 11 May 23rd 08 02:41 PM
adding custom images to a button on custom toolbar Mousam Excel Programming 1 July 13th 07 04:28 PM
How do I lock a radio button group if a N/A button is selected worry a lot Excel Discussion (Misc queries) 2 May 21st 05 08:33 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


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