Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
I have created a small userform in vba.
Now I want to position the form with the following code:
Private Sub UserForm_Initialize() With UserForm1 .StartUpPosition = 0 .Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width) .Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height) End With
...
End Sub
Everytime I ran the code I get a run time error 424 with "Object is required".
I have no clue what to do.
Maybe today is not my day.
PDM/CAD Administrator
Using Inventor/Vault 2024.3
Using Inventor/Vault 2024.3
Solved! Go to Solution.