grimley2
New Member
- Joined
- Feb 1, 2022
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
- Web
I'm using this to force scrollbars to appear on one textbox, however I have three textboxes on my form that need this treatment. Is it possible to do this with multiple textboxes on the same form?
VBA Code:
With textbox1
.ScrollBars = fmScrollBarsBoth
.EnterFieldBehavior = fmEnterFieldBehaviorRecallSelection
.Value = q
.SetFocus
.SelText = q
.SelStart = 0
.SelLength = 0
.SelText = ""
End With