Hello all.
I know how to position a modal form, but a modeless form, acting as a 'please wait' sign is not responding in the same way.
If anyone can help I would be very grateful.
I position a regular form with the following private sub in the forms code window
I call this code from a public sub
I have several of these, all working fine.
The modeless form is exactly the same except adding 'false' to indicate modeless
This causes the code in the forms window, that positions the form, to be ignored.
is there a work around?
Thanks in advance.
D
I know how to position a modal form, but a modeless form, acting as a 'please wait' sign is not responding in the same way.
If anyone can help I would be very grateful.
I position a regular form with the following private sub in the forms code window
Code:
Private Sub UserForm_Activate()
Dim TopOffset As Integer
Dim LeftOffset As Integer
TopOffset = (Application.UsableHeight / 2) - (Me.Height / 2)
LeftOffset = (Application.UsableWidth / 2) - (Me.width / 2)
Me.Top = Application.Top + TopOffset
Me.Left = Application.Left + LeftOffset
End Sub
I call this code from a public sub
Code:
Sub CallUserForm1()
Load UserForm1
UserForm1.Show
End Sub
I have several of these, all working fine.
The modeless form is exactly the same except adding 'false' to indicate modeless
Code:
userform1.show false
This causes the code in the forms window, that positions the form, to be ignored.
is there a work around?
Thanks in advance.
D