• Hiding Worksheet while VBA App runs (2003)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Hiding Worksheet while VBA App runs (2003)

    Author
    Topic
    #431704

    I have a project that I have been working on this week and it is done except for some minor tweaks. It is a user survey that captures results into a worksheet. I start it with a button on the worksheet, and the worksheet is visible while the VBA App is running. So here are my questions:

    1) How can I hide Excel while the VBA App runs?
    2) Can I start the app when the excel file is opened?
    2a) If the VBA app starts when this file is opened, how do I ever get at the worksheet?

    Thanks,

    Andy

    Viewing 1 reply thread
    Author
    Replies
    • #1011021

      You can set Application.Visible = False in the UserForm_Initialize procedure, and if you wish Application.Visible = True in the On Click procedure of the Close button.

      You can call OpenSurveyForm in the Workbook_Open event procedure (in ThisWorkbook).
      If you hold down Shift while opening the workbook, the Workbook_Open code will not run.

      See attached version.

    • #1011022

      N.B. the caption of the first command button on the userform should be Submit instead of Sumbit. blackteeth

    Viewing 1 reply thread
    Reply To: Reply #1011024 in Hiding Worksheet while VBA App runs (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel