mortgageman
Well-known Member
- Joined
- Jun 30, 2005
- Messages
- 2,015
Hi all
The following routine puts scroll bars on the textboxes in the arglist.
It bombs when I try to use the curline property. Does anyone know why?
(I am trying to have the scroll start at the top)
Gene Klein
The following routine puts scroll bars on the textboxes in the arglist.
It bombs when I try to use the curline property. Does anyone know why?
(I am trying to have the scroll start at the top)
Gene Klein
Code:
Public Sub SBturnon(ParamArray arglist() As Variant)
Dim i As Variant
ufEventsDisabled = True
For Each i In arglist
Me.Controls("textbox" & i).ScrollBars = fmScrollBarsVertical
Me.Controls("textbox" & i).MultiLine = True
Me.Controls("textbox" & i).Enabled = True
Me.Controls("textbox" & i).SetFocus
Me.Controls("textbox" & i).SelStart = 0
'Me.Controls("textbox" & i).CurLine = 0
Next
ufEventsDisabled = False
End Sub