> ## Content Index
> Fetch the complete content index at: https://nolongerset.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Select Entire Module in VBA With Control + Click
- URL: https://nolongerset.com/control-click-select-module/
- Published: 2022-11-15T22:38:18.000Z
- Updated: 2026-05-08T12:53:32.000Z
- Description: Learn 4 different ways to select the entire contents of a VBA module, plus a bonus keyboard shortcut tip for switching between two active code modules.
- Author: Mike Wolfe
- Tags: Hidden Features, #Import 2026-05-20 02:59

In [yesterday's article](https://nolongerset.com/double-click-select-procedure/), I wrote about how you can select an entire VBA procedure by double-clicking in the left margin between the breakpoint area and the code area (highlighted in red below):

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/11/image-16.png)

It turns out, that if you **\[Ctrl\] + \[Left-Click\]** in the same "mouse target area" shown above, that VBA will select the contents of the entire module.

## Alternatives for Selecting an Entire Module

While this is an interesting feature, I'm not sure I'll end up using it much.

The mouse target area (as shown above) is relatively narrow and there are several keyboard-only alternatives that I find more efficient:

- **\[Ctrl\] + \[Home\], \[Ctrl\] + \[Shift\] + \[End\]**: *go to top of the module and select to the end*
- **\[Ctrl\] + \[End\], \[Ctrl\] + \[Shift\] + \[Home\]**: *go to bottom of the module and select to the top*
- **\[Ctrl\] + \[A\]**: *Select All*

## Source of the Tip

Juanjo Luna, the [newest Access MVP](https://nolongerset.com/week-in-review-2022-11-05/), discovered this feature after playing around with my tip from yesterday:

![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/11/image-19.png)

Here's the Spanish-language [video](https://www.youtube.com/watch?v=HRxs6WzQG14) he references in the above LinkedIn comments (auto-generated English captions available):

In addition to the Ctrl + Click feature, Juanjo also covers several other tips for navigating the VBA IDE, including a quick way to switch back and forth between two active code modules:

- **\[Alt\] + \[W\], \[2\]**: *Window > 2nd most recently used window ("1" refers to the active window)*