Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem
Active X command button - Strange problem Active X command button - Strange problem
Active X command button - Strange problem
Go Back  Xtreme Visual Basic Talk > > > > Active X command button - Strange problem


Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2018, 08:20 AM
Heyjoe Heyjoe is offline
Centurion
 
Join Date: Nov 2006
Location: USA
Posts: 174
Default Active X command button - Strange problem


I put an active x command button in a work sheet to try to understand why these don't always work for me. (I had posted a similar question recently.)

Private Sub CommandButton1_Click()

MsgBox ("It worked")
'

End Sub
When I first load the worksheet and click on the button it works. I can click on it as many times as I want and it will still works. There is not a dotted line on the perimeter of the button when I click it. After I click it the dotted line remains.

If I click on a cell in the worksheet the dotted line disappears. If I then click the button it doesn't work. If I right click the button the dotted lines will appear on the perimeter of the button. If I then click the button it works.

I thought maybe it was my mouse, but I have active x command buttons in other workbooks and they work.

I thought it might have to do with take focus on click in properties. This is set to true.

It works good enough for me. But if I give the workbook to someone else it probably won't work.

Any help would be appreciated.
Reply With Quote
  #2  
Old 06-12-2018, 07:02 PM
Kluz's Avatar
KluzActive X command button - Strange problem Kluz is offline
Sapience.Aquire

Super Moderator
* Expert *
 
Join Date: Oct 2003
Location: Lake Bluff, Ill., U.S.
Posts: 3,466
Default

I am not able to reproduce this problem. Sorry.
__________________
No the other right mouse click
Reply With Quote
Reply

Tags
click, button, dotted, line, command, active, worksheet, perimeter, lines, buttons, mouse, workbook, appreciated, focus, true, set, properties, workbooks, question, similar, understand, strange, sheet, recently, private


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem Active X command button - Strange problem
Active X command button - Strange problem
Active X command button - Strange problem
 
Active X command button - Strange problem
Active X command button - Strange problem
 
-->