+ Reply to Thread
Results 1 to 7 of 7

Test for Start screen

  1. #1
    Forum Contributor
    Join Date
    01-22-2022
    Location
    UK
    MS-Off Ver
    365
    Posts
    130

    Test for Start screen

    Is there a way to test for the start screen on Workbook open.
    This is from an Add-in.
    Or show blank workbook instead.

    Untitled.png

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Test for Start screen

    Not certain I fully understand your question.

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,279

    Re: Test for Start screen

    It is probably about such a moment when you open the Excel application (without opening the file). At that moment, all the add-ins indicated in the list are loaded. Since no workbook has been opened (xls, xlsx, xlsm) probably the event procedure in our add-in assumes that a workbook is already open and reports an error.
    Just check how many workbooks are open:
    Please Login or Register  to view this content.
    Unless it is about something else. This is just my guess.

    Artik

  4. #4
    Registered User
    Join Date
    09-17-2022
    Location
    London
    MS-Off Ver
    10
    Posts
    2

    Re: Test for Start screen

    Oh, very helpful

  5. #5
    Forum Contributor
    Join Date
    01-22-2022
    Location
    UK
    MS-Off Ver
    365
    Posts
    130

    Re: Test for Start screen

    Thanks Artik, this is what I was referring to.

    I've tested by unchecking "Show the Start screen when this application starts" in Excel Options, General.
    But still get a count of 0, so the workbook open event seems to be running before the worksheet is shown.

    Please Login or Register  to view this content.
    Attachment 796758

    Attachment 796759

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,279

    Re: Test for Start screen

    Once again.
    When opening Excel, the add-ins are loaded first and then the workbook(s). That is, in the Open procedure in the add-in, you will always get result = 0, because the event occurred even before any workbook was opened.

    I suggest, describe exactly the problem you have and what you want to achieve, because perhaps checking "Show the Start screen..." is not the right way.
    To check whether the "Show the Start screen..." checkbox is checked, you need to look at the system registry with code.

    By the way.
    Attach attachments to the forum as described in the yellow banner at the top of the page. Other attachment methods may be unreliable.

    Artik

  7. #7
    Forum Contributor
    Join Date
    01-22-2022
    Location
    UK
    MS-Off Ver
    365
    Posts
    130

    Re: Test for Start screen

    Hi Artik, this is a better description.
    So if the Show the Start screen box is checked, there is an error message.
    If Excel opens like it used to before in a blank worksheet, then no issues.

    ThisWorkbook:
    Please Login or Register  to view this content.
    module:
    Please Login or Register  to view this content.

+ 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] What to start from? Getting info from website, past login screen.
    By rcurious in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2021, 02:12 AM
  2. [SOLVED] how to start this private test ?
    By incobart in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2019, 07:49 AM
  3. Start screen won't show up after my XLL loaded
    By neu_stone in forum Office 365
    Replies: 3
    Last Post: 09-18-2017, 05:37 PM
  4. Test in beginning of macro and start from top if false
    By samot79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2017, 06:06 PM
  5. Can't seem to get the Splash screen to open on start up
    By bralew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-01-2016, 07:13 AM
  6. VBA code to show the start screen when this application starts
    By Tazyote in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2016, 02:16 PM
  7. How to make a start up/ welcome screen?
    By abrunstad in forum Excel General
    Replies: 1
    Last Post: 03-02-2009, 05:55 PM

Tags for this Thread

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