Fix Excel Macro Recorder Not Recording Single-Cell Selection
Question details
The user is trying to record a macro in Excel, but selecting a single cell with the left mouse button does not generate any VBA code, despite range selections working correctly.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Recording automated tasks using the built-in Macro Recorder.
- Observed behavior
- The Excel Macro Recorder completely ignores single-cell selections made with a mouse click, failing to record the corresponding Select action in the VBA code.
Ensure that the Developer tab is enabled in your Excel ribbon, as you will need access to the Visual Basic for Applications (VBA) editor to manually review or edit your recorded macro code.
Use Keyboard Arrow Keys Instead of Mouse Clicks
Instead of clicking, use your keyboard to navigate. The macro recorder tracks keyboard navigation more reliably than single mouse clicks.
A common quirk with the Excel Macro Recorder is that it occasionally ignores solitary left-clicks on single cells to prevent redundant code. However, navigating to a cell using the keyboard forces the recorder to log the exact cell selection.
Go to the Developer tab on the Excel ribbon and click 'Record Macro'. Give your macro a name and click OK.
When you need to select a single cell, do not use your mouse. Instead, use the Up, Down, Left, or Right arrow keys on your keyboard to move the active cell box to your target cell.
Perform any other actions you wish to record, then click 'Stop Recording' on the Developer tab. The VBA code will now successfully reflect your single-cell selection.

Manually Add the VBA Selection Code
If the recorder missed your action, you can quickly insert the missing single-cell selection command directly into the VBA Editor.
Submit Feedback to Microsoft
Report this unresolved Macro Recorder bug directly to Microsoft to help developers issue a future patch.
Try WPS Office for Reliable Spreadsheet and Macro Handling
If unresolved bugs in Microsoft Excel disrupt your automated tasks, consider switching to WPS Office. It provides a highly compatible, lightweight, and efficient environment for managing complex spreadsheets, complete with robust macro support.
- 1. Download and Install: Download WPS Office for free from the official website and follow the quick installation prompts.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx or .xlsm files directly without worrying about formatting loss.
- 3. Utilize Macros: Access the Developer tab to record, edit, and run your macros smoothly within the WPS environment.

Frequently Asked Questions
Why does the Excel Macro Recorder ignore my mouse clicks?
The Excel Macro Recorder is primarily optimized for tracking data entry and broader range selections. In some versions, it intentionally or accidentally filters out single-cell left clicks to minimize bloated code, requiring users to rely on keyboard navigation instead.
How do I write VBA code to select a single cell?
To explicitly select a single cell using VBA, you use the Range object followed by the Select method. For example, typing Range("C5").Select will highlight cell C5 when the macro runs.
Does WPS Office support Excel macros?
Yes, WPS Office supports macros. The Free version supports JavaScript (JS) Macros for modern automation, while WPS Office Premium offers comprehensive VBA support that is highly compatible with existing Microsoft Excel macros.
What is the difference between absolute and relative references when recording?
Absolute references record the exact cell address (e.g., always selecting A1 no matter where you start). Relative references record the movement from your current active cell (e.g., moving one cell down and two cells to the right).




