We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
Being modal, you must hide the form before you can use the workbook
You may change values etc programmatically whilst the form is up but you cannot set the focus
Try:
FormName.Hide
this will hide the form but should kepp the current values
Rgds, Geoff
We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.
Private Declare Function SetActiveWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
Private Sub CommandButton1_Click()
SetActiveWindow Application.hwnd
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.