I am trying to loop through all textboxes on the "active" page of a multipage userform and change the backstyle on each one:
I am getting a compile error. What do I need to put in front of ".Backstyle....." to make it work? Also, is "ActivePage" correct?
thanks
Code:
Dim cCont As Control
For Each cCont In Me.MultiPage1.ActivePage.Controls
If TypeName(cCont) = "TextBox" Then
.BackStyle = fmBackStyleTransparent
End If
Next cCont
End Sub
I am getting a compile error. What do I need to put in front of ".Backstyle....." to make it work? Also, is "ActivePage" correct?
thanks
Last edited: