Consulting

Results 1 to 4 of 4

Thread: Stop Excel Showing

  1. #1
    VBAX Regular
    Joined
    Jan 2009
    Posts
    57
    Location

    Stop Excel Showing

    I'm trying to get my splash screen to show with Excel hidden using Application.Visible = False in the Workbook Open sub of the workbook. However, Excel still trys to open initially.

    Is there any way to stop Excel trying to show before this code is executed?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This sort of code works fine for me

    [vba]

    Private Sub Workbook_Open()
    Application.Visible = False
    UserForm1.Show
    Application.Visible = True
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2009
    Posts
    57
    Location
    That's exactly the type of code I have but the background of Excel opens briefly before the Application.Visible = False code runs and the userform opens so it doesn't look very neat.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Well it will, because it starts up before it opens any workbooks and before it runs any code.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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