shg
MrExcel MVP
- Joined
- May 7, 2008
- Messages
- 21,836
- Office Version
- 2010
- Platform
- Windows
I have a modeless userform that works great (I use the default instance):
I just just added an initialize event:
oCol is a collection object declared at the top of the module; it's purpose is to keep a history of form states that a spin button can ratchet through.
Now I get a runtime error 438 on the .Show line: "Object doesn't support this property or method". If I comment out the initialize event, it works fine again.
Anyone see the error of my ways?
VBA Code:
frmHighlight.Show vbModeless
I just just added an initialize event:
VBA Code:
Private Sub UserForm_Initialize()
Set oCol = New Collection
oCol.Add Array(vbNullString, False, vbBlack) ' dummy for sorting
With Me.txtInp
oCol.Add Array(.Value, .Font.Bold, .Font.Color)
End With
End Sub
oCol is a collection object declared at the top of the module; it's purpose is to keep a history of form states that a spin button can ratchet through.
Now I get a runtime error 438 on the .Show line: "Object doesn't support this property or method". If I comment out the initialize event, it works fine again.
Anyone see the error of my ways?