Excel Performance issues using VBA and ActiveX buttons

grabrail

Board Regular
Joined
Sep 6, 2010
Messages
128
Office Version
  1. 365
Platform
  1. Windows
HI

I have a workbook that has extensive vba code to do multiple things in the background, and a number of ActiveX buttons with code assigned to them.

Sometimes when clicking the buttons there is no response, and I have to change worksheet and go back t the worksheet with the buttons on them to get them to respond. Its like Excel is having perfomance issues.

one of the buttons is a validat button which goes and checks multiple cells on different worksheets to ensure data has been entered, another button is a save button which saves the workbook to a specific location with specific filename.

The buttons actually work fine and do the job they are meant to do, and pretty quickly, its just sometimes there is no respnse.

My laptop is new and has lots of memory and an i7 processor

Any ideas or thoughts as to why this would happen and how to reduce or stop it from happening?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
HI

I have a workbook that has extensive vba code to do multiple things in the background, and a number of ActiveX buttons with code assigned to them.

Sometimes when clicking the buttons there is no response, and I have to change worksheet and go back t the worksheet with the buttons on them to get them to respond. Its like Excel is having perfomance issues.

one of the buttons is a validat button which goes and checks multiple cells on different worksheets to ensure data has been entered, another button is a save button which saves the workbook to a specific location with specific filename.

The buttons actually work fine and do the job they are meant to do, and pretty quickly, its just sometimes there is no respnse.

My laptop is new and has lots of memory and an i7 processor

Any ideas or thoughts as to why this would happen and how to reduce or stop it from happening?
Further to this, it seems like it happens most when a button has been pressed and does what it needs to do, then you click one of the other buttons, this seems to be the most times when the problem is happening
 
Upvote 0
Seems like a focus issue. Does your code effect sheets other than the sheet with the buttons? Trial adding either YourButtonSheetName.Select or YourButtonSheetName.Activate to the end of your button(s) code. HTH. Dave
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top