Fix an Excel Macro Button That Does Not Respond to Touch
Question details
The user needs an Excel graphic button linked to a macro to respond to touchscreen taps.

- 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.
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.
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.
Close Excel. Press Windows logo key + R, type regedit, and select OK.
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.
Under Common, select Graphics if it exists. Otherwise, right-click Common, choose New > Key, and name it Graphics.
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.
Close Registry Editor, restart the computer, open the workbook in Excel, and tap the button again.

Move the Macro Button to Another Worksheet Area
Use this workaround if the button responds to touch elsewhere on the sheet.
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.

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.




