+ Reply to Thread
Results 1 to 9 of 9

Application shows before UserForm

  1. #1
    Registered User
    Join Date
    09-11-2015
    Location
    Hamilton, ON Canada
    MS-Off Ver
    2013
    Posts
    32

    Application shows before UserForm

    Hello,

    I have an xlsm file that has multiple userforms. When I open the file it shows the Excel application and the worksheet that was last saved briefly before going to frm_Show_Splash userform. I've tried to use the following code in the ThisWorkbook module, but it still does it. Is there any other way of doing this?

    Please Login or Register  to view this content.
    Thanks

    BigD

  2. #2
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Application shows before UserForm

    How about moving it to a close for hiding the sheet as far as not have Excel show for the quick second I'm not sure of any other way to achieve that

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-11-2015
    Location
    Hamilton, ON Canada
    MS-Off Ver
    2013
    Posts
    32

    Re: Application shows before UserForm

    Thanks for the replay meabrams,

    I tried it, but got the same results.

    BigD

  4. #4
    Registered User
    Join Date
    09-11-2015
    Location
    Hamilton, ON Canada
    MS-Off Ver
    2013
    Posts
    32

    Re: Application shows before UserForm

    Just a note to say I was unable to solve this.

    BigD

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Application shows before UserForm

    How about designing a special sheet (? all one empty cells with attractive fill color") specifically for the brief splash and use code like

    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  6. #6
    Registered User
    Join Date
    09-11-2015
    Location
    Hamilton, ON Canada
    MS-Off Ver
    2013
    Posts
    32

    Re: Application shows before UserForm

    The only thing I could think of was to change to a blank sheet called "Spare" before saving and closing the Workbook. So when the file is opened again it shows the blank Sheet for a split second.





    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor xlbiznes's Avatar
    Join Date
    02-22-2013
    Location
    Bahrain
    MS-Off Ver
    Excel 2007
    Posts
    1,223

    Re: Application shows before UserForm

    Try this :
    Please Login or Register  to view this content.
    Show the sheet after you close the form :

    Please Login or Register  to view this content.
    Happy Computing ,

    Xlbiznes.

    To show your appreciation please click *

  8. #8
    Registered User
    Join Date
    09-11-2015
    Location
    Hamilton, ON Canada
    MS-Off Ver
    2013
    Posts
    32

    Re: Application shows before UserForm

    Causes Object Variable or With Block variable not set when I Activate Sheets in my second Userform Initialize

    BigD

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Application shows before UserForm

    The reason for that error is that there isn't (quite) a Window when the Open event runs.
    One way to fix those kinds of errors is to move from the Open event to the Activate event. The difficulty comes that the Activate event triggers when you switch between open workbooks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Where be the macro which shows the UserForm should be written?
    By zanshin777 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2015, 12:21 PM
  2. If Runtime error Shows up then Give a Msgbox (for userform)
    By ohboyherewegoagain in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2014, 09:20 AM
  3. Userform with combobox that shows data within the userfom
    By gaz32111 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-13-2013, 05:50 PM
  4. [SOLVED] Userform TextBox that Shows cell Value but cannnot be Edited
    By anandvh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 11:31 PM
  5. Hidden Userform shows instead of Worksheet after Application.Goto
    By bdoodle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2012, 01:54 PM
  6. Userform TextBox that Shows cell Value but can also be Edited
    By imav in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-19-2011, 08:37 AM
  7. Replies: 1
    Last Post: 08-30-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1