raccoon588
Board Regular
- Joined
- Aug 5, 2016
- Messages
- 118
I have the following code and it works if the only thing i list is the font size. When i add the height and width i get an error. Run- time error '438': Objest doesnt support this property method.
is there anything i can do to get my active x list boxes to stop resizing?
I sent the integral height property to false but it continues to resize.
is there anything i can do to get my active x list boxes to stop resizing?
I sent the integral height property to false but it continues to resize.
Code:
For Each OLEobj In ActiveSheet.OLEObjects
If OLEobj.progID = "Forms.ListBox.1" Then
' OLEobj
OLEobj.Object.Font.Size = 12
OLEobj.Object.Height = 47.25
OLEobj.Object.Width = 141.75
End If
Next OLEobj
End Sub