Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 68
Default Control button question

Assuming we're talking about ActiveX type command buttons check the
TakeFocusOnClick property. I would ensure this property is set to false
unless you have a reason otherwise as it cures some side issue bugs. This
alone won't account for the behaviour you're suggesting so I would try:

- In design mode double click the button, enter some code in the click event
(Msgbox "hello" will do) exit design mode and press the button

You should see your code execute now. The button must be enabled in your
case as the control is taking focus in the first place which is normal.



--
Regards,


Bill Lunney
www.billlunney.com

"Peter Bugnet" wrote in message
...
I have a number of buttons with VBA code linked to them
on a worksheet. All buttons do the same thing (format
some cells and copy some data from one sheet to another).
But two of the buttons, when another button is clicked
afterwards, change to a depressed picture. The code is
not triggered, just the graphical look of the button is
changed. Anyone have any ideas what causes this and how I
stop it?

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
Button in Form Control SJL New Users to Excel 1 December 30th 09 09:30 PM
Control Button jai Excel Discussion (Misc queries) 2 August 25th 07 07:26 AM
Control button / macro Sarah Excel Discussion (Misc queries) 2 February 11th 07 04:45 AM
Control box and button oxicottin Excel Discussion (Misc queries) 4 January 23rd 07 03:03 PM
control button numbers (ID=???) Bob Phillips[_5_] Excel Programming 0 July 26th 03 02:02 PM


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