Workbook not resetting after closing from form.

GingerBeardo

New Member
Joined
Feb 20, 2019
Messages
14
My Excel workbook is set to open to the form and hide the workbook, in order to view the work book you must type "view" in the top text box and hit the "check out" button. When hitting the "X" in the top, right corner of the form it is supposed to close the unload the for and exit the application, which it seems to do. although, upon reopening excel it lags on start up and then jumps straight to the workbook, ignoring opening the form. I can not figure out why this is happening. I am including a copy for review. I would appreciate any and all constructive input.

https://www.amazon.com/clouddrive/share/6uX1VhVXHjxznAvNBequ6Br1wPNuXxacnmSmAs8geq9
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,593
Office Version
  1. 2007
Platform
  1. Windows
Make these adjustments

On Form:

Code:
Private Sub CloseForm_Click()
    
    HideTitleBar Me
    Application.Visible = True
    Unload CheckForm
    Application.Quit
    
End Sub


Private Sub Label3_Click()
    Application.Visible = True
    Unload Me
    Application.Quit


End Sub


in the open event

Code:
Private Sub Workbook_Open()


    Application.ScreenUpdating = False
    Application.Visible = False
    CheckForm.Show
    
End Sub


---

upon reopening excel it lags on start up



It is the time that Excel needs to open.
But if you open the excel application first and then upload your file "SmartTracker" the process is faster
 

Watch MrExcel Video

Forum statistics

Threads
1,108,490
Messages
5,523,251
Members
409,506
Latest member
reneekeane

This Week's Hot Topics

Top