Home

ActiveX 'button' has stopped working

%3CLINGO-SUB%20id%3D%22lingo-sub-690225%22%20slang%3D%22en-US%22%3EActiveX%20'button'%20has%20stopped%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-690225%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20PC%20has%20rebooted%20itself%20three%20times%20today%20(13th%20June%202019)%20through%20automatic%20updating.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20not%20know%20why%20but%20the%20ActiveX%20'button'%20in%20one%20of%20my%20key%20workbooks%20has%20now%20ceased%20to%20work.%20I%20used%20an%20ActiveX%20'button'%20because%20I%20wanted%20better%20control%20over%20its%20background%20colour%2C%20which%20a%20basic%20form%20button%20does%20not%20allow%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20workbook%20with%20multiple%20worksheets.%20Near%20the%20'end'%20of%20the%20workbook%20is%20a%20statistical%20sheet%2C%20which%20also%20serves%20as%20a%20clickable%20table%20of%20contents.%20Those%20table%20of%20contents%20functionalities%20have%20not%20been%20corrupted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20each%20of%20the%20main%20worksheets%20there%20is%20an%20ActiveX%20'button'%2C%20which%20is%20named%20CommandButton1%20(the%20name%20the%20system%20gave%20it%20when%20I%20first%20created%20it%20about%2015%20days%20ago).%20On%20examining%20it%20in%20Design%20Mode%2C%20it%20appears%20to%20still%20be%20an%20ActiveX%20'button'%20with%20its%20text%20and%20colour%20formatted%20correctly%20and%20the%20code%20view%20is%20what%20I%20expected%20(see%20below)%20BUT%20the%20button%20has%20just%20simply%20ceased%20to%20work.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CU%3EThisWorkbook%20Level%20Module%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESub%20Goto_GSUTPF_Index()%3CBR%20%2F%3EWorksheets(%22Coverage_Statistics%22).Activate%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3ESheet%20Level%20Module%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20CommandButton1_Click()%3CBR%20%2F%3ECommandButton1.BackColor%20%3D%204349166%3CBR%20%2F%3EThisWorkbook.Goto_GSUTPF_Index%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20closed%2C%20re-opened%2C%20saved%20a%20few%20times%20but%20no%20effect.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%2C%20most%20strangely%2C%20also%20appear%20to%20have%20ended%20up%20with%20two%20identical%20copies%20of%20the%20same%20VBAProject.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20please.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%3C%2FP%3E%3CP%3EPhilip%3CBR%20%2F%3EBendigo%2C%20Victoria%3CBR%20%2F%3EAustralia%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-690225%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActiveX%20button%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-691502%22%20slang%3D%22en-US%22%3ERe%3A%20ActiveX%20'button'%20has%20stopped%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-691502%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F313780%22%20target%3D%22_blank%22%3E%40PMHunt1955%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20one%20appears%20to%20have%20cleared%20itself%20up%20after%2024%20hours.%26nbsp%3B%20I%20don't%20know%20why%3B%20I%20changed%20nothing%2C%20but%20did%20close%2C%20and%20reopen%2C%20the%20affected%20workbook%20a%20couple%20of%20times.%26nbsp%3B%20That's%20the%20way%20things%20go%20sometimes%2C%20I%20suppose.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-819958%22%20slang%3D%22en-US%22%3ERe%3A%20ActiveX%20'button'%20has%20stopped%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-819958%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20the%20same%20problem.%3C%2FP%3E%3CP%3EIf%20I%20include%20a%20simple%20ActiveX%20button%20with%20a%20simple%20macro%2C%20it%20will%20not%20work.%26nbsp%3B%3C%2FP%3E%3CP%3EClicking%20the%20button%20has%20no%20effect%20but%20can%20run%20the%20macro%20manually.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
PMHunt1955
Contributor

My PC has rebooted itself three times today (13th June 2019) through automatic updating.

 

I do not know why but the ActiveX 'button' in one of my key workbooks has now ceased to work. I used an ActiveX 'button' because I wanted better control over its background colour, which a basic form button does not allow for.

 

I have a workbook with multiple worksheets. Near the 'end' of the workbook is a statistical sheet, which also serves as a clickable table of contents. Those table of contents functionalities have not been corrupted.

 

On each of the main worksheets there is an ActiveX 'button', which is named CommandButton1 (the name the system gave it when I first created it about 15 days ago). On examining it in Design Mode, it appears to still be an ActiveX 'button' with its text and colour formatted correctly and the code view is what I expected (see below) BUT the button has just simply ceased to work.


ThisWorkbook Level Module

 

Sub Goto_GSUTPF_Index()
Worksheets("Coverage_Statistics").Activate
End Sub

 

Sheet Level Module

 

Private Sub CommandButton1_Click()
CommandButton1.BackColor = 4349166
ThisWorkbook.Goto_GSUTPF_Index
End Sub

 

I have closed, re-opened, saved a few times but no effect.

 

I do, most strangely, also appear to have ended up with two identical copies of the same VBAProject.

 

Any ideas please.

 

Best regards

Philip
Bendigo, Victoria
Australia

2 Replies

@PMHunt1955 

 

This one appears to have cleared itself up after 24 hours.  I don't know why; I changed nothing, but did close, and reopen, the affected workbook a couple of times.  That's the way things go sometimes, I suppose.

I have the same problem.

If I include a simple ActiveX button with a simple macro, it will not work. 

Clicking the button has no effect but can run the macro manually. 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies