Others

Enable Mouse-Wheel Scrolling in an Access Text Box with VBA

Steve KSteve K Nov 22, 2026 868 views

Question details

The user wants to enable mouse-wheel scrolling in a large multiline Access text box using VBA.

Enable Mouse-Wheel Scrolling in an Access Text Box with VBA
Product
Microsoft Access
Device & OS
not provided
Scenario
A form contains a multiline text box with enough content to require scrolling.
Observed behavior
Mouse-wheel scrolling is not always available in the text box, and a previously used VBA solution now produces an error.
Before you start

In Access, open File > Account > About Access to check your version and whether it is 32-bit or 64-bit. Use VBA code only from a source you trust, and review its setup requirements before enabling it.

Solution 1Recommended

Install a tested Access text box mouse-wheel solution

Use an established VBA implementation to capture mouse-wheel input and scroll the text box.

1
Find the implementation

Search for Daniel Pineault's “Enable Mouse Wheel Scrolling of Text Box” implementation and read its setup instructions for the Access version you use.

2
Add the required code

Open the database in Access and press Alt+F11 to open the VBA editor. Add the modules, declarations, and event procedures specified by the implementation; follow its instructions for connecting them to your form and text box.

3
Compile the project

In the VBA editor, select Debug > Compile and resolve any reported errors. Check that the supplied declarations support your 32-bit or 64-bit Access installation.

4
Test the text box

Open the form, click inside the multiline text box, and turn the mouse wheel. Confirm that the text scrolls as intended.

Install a tested Access text box mouse-wheel solution
Code may need updating: A solution that worked previously may need an update after an Access or Windows change. Follow the implementation's current compatibility instructions rather than changing API declarations without checking them.
Free Microsoft Office alternative

Use WPS Office for Everyday Office Documents

WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move everyday files between suites. It does not fix Access VBA or replace an Access database.

Create and edit documents, spreadsheets, and presentations in a familiar interfaceOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXWork with long text in Writer documents alongside your database workflowUse a free, lightweight office suite for everyday tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does the mouse wheel not scroll my Access text box?

Access does not always provide mouse-wheel scrolling for a multiline text box. A tested VBA implementation can capture wheel input and scroll the control programmatically.

How do I check whether Access is 32-bit or 64-bit?

In Access, open File > Account > About Access. The About window identifies the installed version and bitness.

What should I check if the VBA code produces an error?

Select Debug in the error dialog if available, and note the highlighted line. In the VBA editor, check Tools > References for missing entries and use Debug > Compile to find additional problems.

Can WPS Office run the Access mouse-wheel VBA solution?

No. The solution is intended for Microsoft Access and its VBA environment. WPS Office can be used for compatible documents, spreadsheets, and presentations, but it does not fix Access VBA.