Solved

Excel VBA Button Won't Click

Posted on 2014-12-22
4
11,976 Views
Last Modified: 2014-12-22
I have an Excel file that uses VBA to extract data from a Pervasive SQL database. The VBA code runs when a button is clicked on the worksheet. Suddenly, the button won't click and the code won't run. I've checked the TrustCenter settings in Excel, and nothing has changed. Macros are set to "Disable all macros with notification." I've set the network share as a Trusted Location. Other users on the network are having the same issue. My user has domain admin rights. But when I log in under a separate domain admin account, the button does click and the VBA code runs. I can't find a GPO that might be causing this either.
0
Comment
Question by:Perfishent
4 Comments
 
LVL 10

Expert Comment

by:Anthony Berenguel
ID: 40513927
are you in design mode? When you click the button does the button get selected? Or does nothing happen at all?

right click the button and make sure that there is code tied to it. Right-click, assign macro, then if a macro is tied to the button it will be displayed under Macro name:
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 200 total points
ID: 40513939
This is an issue with recent updates for Office. Start a search from the %temp% folder for MSForms. exd,  and remove them, while Office is not running.
0
 
LVL 27

Accepted Solution

by:
MacroShadow earned 300 total points
ID: 40513950
Yes, it is an issue with a recent update. Just discovered it after banging my head against the wall for an hour.
MS published a Fixit http://support.microsoft.com/kb/3025036/EN-US
See http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx
0
 

Author Closing Comment

by:Perfishent
ID: 40513980
Deleting the MSForms.exd file did fix the problem. But the Fixit solution published by Microsoft and explained by MacroShadow was more complete and covered all of the Office programs--not just Excel. Thanks for your help!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question