splash screen

I am trying to create a splash screen in vba for when I open up my program in excel. When it opens up the form does not allow any events to happen in the background until the form is closed.Does anyone know how to do this?
Who is Participating?
JhuntConnect With a Mentor Commented:
Try showing the form as modal and put this inside the form_load.

sub Form_Load

me.show 'show form
doevents' make sure form is shown
DoStuff 'a subroutine where what you want done is done

unload me

end sub
You need to make the window NON modal.  When you want to show your splash form you should call it like this


And nothing else.  My guess is that you have a ,1 put in there somewhere, and this makes the window modal.
pandrusyAuthor Commented:
Ive made the form with just .show it doesn't matter. I think it is a vba limitation. The effect that I am really trying to get is when the user clicks on the icon have the splash screen come up like when you open up word or excel, and execute the opening of excel and the program in the background, then close once the opening sequence is completed.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

have you tried
pandrusyAuthor Commented:
I have now switched to a vb exe and am using the built in splash screen. Check out this code. Everything runs perfectly but when excel comes up it is read only.

Sub Main()
Dim exclapp As Object

Set exclapp = CreateObject("Excel.Application")

    exclapp.workbooks.Open "My workbook that I am using"
    exclapp.Run "Auto_Open"
    Unload frmSplash
    exclapp.Visible = True

End Sub
I don't know if your Late Binding will work using the following early binding code example, but it might.  I followed your code and came up with the same response that you did (Read Only), this method worked however...

    Dim exapp As Excel.Application
    Dim exbook As Excel.workbooks
    Set exapp = CreateObject("Excel.Application")
    Set exbooks = exapp.workbooks
    exapp.Visible = True
    exbooks.Open "My workbook that I am using"
    exapp.Run "Auto_Open"

    Set exbooks = Nothing
    Set exapp = Nothing

i tried your code and works for me, i mean Excel opens up as normal and i can read/write. i am not sure why Excel is opening as read only. here is the code that i tried.(pretty much same as yours)

Dim ExcelObj As Object
Set ExcelObj = CreateObject("Excel.Application")
ExcelObj.workbooks.Open "C:\Manohar\Finance.xls"
'ExcelObj.Run "Auto_Open"
Unload frmSplash
ExcelObj.Visible = True
End Sub

pandrusyAuthor Commented:
I figured it out myself using screen updating. Thanks for all the help though.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.