VBA scroll bar not working on the second screen

rb225

New Member
Joined
Apr 5, 2023
Messages
1
I am working on the VBA userform. If I open the VBA application on the second screen then the scroll bar gets locked and it doesn't work.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi there

It sounds like you may be encountering a known issue with VBA userforms on multiple monitors where the scroll bar becomes unresponsive when the VBA application is opened on a secondary monitor.

One potential solution to this issue is to use the following code in the UserForm_Initialize event:

VBA Code:
Me.ScrollBars = fmScrollBarsVertical

This code explicitly sets the userform's scrollbar property to vertical and may help to resolve the issue. Alternatively, you could try to move the VBA application to the primary monitor before opening the userform. This may help to avoid the issue altogether. If neither of these solutions work, you may need to explore other potential causes for the scroll bar issue, such as conflicts with other software or hardware on your system.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top