VBA & Macro Problems

Fix an Excel Macro Button That Does Not Respond to Touch

Jason MillerJason Miller Nov 18, 2026 871 views

Question details

The user needs an Excel graphic button linked to a macro to respond to touchscreen taps.

Fix an Excel Macro Button That Does Not Respond to Touch
Product
Microsoft Excel
Device & OS
Windows
Scenario
A macro-linked graphic button is positioned in a particular area of an Excel worksheet on a touchscreen device.
Observed behavior
The button runs its macro when clicked with a mouse but does not respond to taps in that worksheet area.
Before you start

Confirm that clicking the button with a mouse runs the macro, then test whether tapping it works after moving it to another worksheet area. Identify your Office version in Excel under File > Account before editing the registry.

Solution 1Recommended

Disable Office Hardware Graphics Acceleration in the Registry

Try this graphics-related troubleshooting step when the button works with a mouse but not by touch.

This setting is a troubleshooting measure, not a guaranteed fix. It applies to Office for the current Windows user.

1
Close Excel and open Registry Editor

Close Excel. Press Windows logo key + R, type regedit, and select OK.

2
Find and export the Office key

Browse to HKEY_CURRENT_USER\Software\Microsoft\Office\[Version]\Common, replacing [Version] with your Office version. Select Common, then choose File > Export to save a copy before making changes.

3
Create the Graphics key if needed

Under Common, select Graphics if it exists. Otherwise, right-click Common, choose New > Key, and name it Graphics.

4
Set the acceleration value

Select Graphics. In the right pane, find DisableHardwareAcceleration or right-click and choose New > DWORD (32-bit) Value to create it. Double-click the value, set Value data to 1, and select OK.

5
Restart and test

Close Registry Editor, restart the computer, open the workbook in Excel, and tap the button again.

Disable Office Hardware Graphics Acceleration in the Registry
Registry access: Use 16.0 for Office 2016, 2019, 2021, and Microsoft 365; 15.0 for Office 2013; or 14.0 for Office 2010. Contact IT support if registry editing is restricted.
Free Microsoft Office alternative

Work with Excel Files in WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar interface for working with Excel files and moving everyday spreadsheet tasks to WPS. It does not change Excel's touchscreen or graphics settings.

Open and edit compatible Microsoft Excel XLSX and XLS filesWork with spreadsheet graphics and worksheet layoutsUse a familiar interface for a smoother transition from Microsoft OfficeAccess a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the button work with a mouse but not with touch?

The cause is not confirmed, but an Office graphics setting may contribute. Test the button in another worksheet location and try disabling hardware graphics acceleration if needed.

Which Office registry version should I use?

Use 16.0 for Office 2016, 2019, 2021, and Microsoft 365; 15.0 for Office 2013; and 14.0 for Office 2010. Check your product information in Excel under File > Account.

What if the Graphics key does not exist?

In Registry Editor, right-click the Common key, select New > Key, and name it Graphics. Then add the DisableHardwareAcceleration DWORD inside it.

How can I undo the graphics setting?

In Registry Editor, return to the Graphics key and set DisableHardwareAcceleration to 0, or remove the value if you created it for this test. Restart the computer and test Excel again.