Hi All,
I'm looking for a way to open my workbook in a separate instance of Excel and then hide the application and show only a userform called Client_Information_UF.
After searching around I found this bit of code to create a separate instance of Excel, but if I change xlApp.Visible = True to xlApp.Visible = False, the application and workbook still shows behind the userform when opening. Not sure why, i thought the False statement would hide the application?
Private Sub Workbook_Open()
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Visible = True
Set xlApp = Nothing
Client_Information_UF.Show
End Sub
I need the application of this particular instance of Excel to hide only. If i was to use for e.g. a shared instance of Excel and use code like Application.Visible = False somewhere in my Sub, then it hides any other workbooks that the user may have open when I open this workbook.
Hope my question is clear and forgive me if its a really obvious solution. I'm really new to VB.
Thanks in advance
Patrick
I'm looking for a way to open my workbook in a separate instance of Excel and then hide the application and show only a userform called Client_Information_UF.
After searching around I found this bit of code to create a separate instance of Excel, but if I change xlApp.Visible = True to xlApp.Visible = False, the application and workbook still shows behind the userform when opening. Not sure why, i thought the False statement would hide the application?
Private Sub Workbook_Open()
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
xlApp.Visible = True
Set xlApp = Nothing
Client_Information_UF.Show
End Sub
I need the application of this particular instance of Excel to hide only. If i was to use for e.g. a shared instance of Excel and use code like Application.Visible = False somewhere in my Sub, then it hides any other workbooks that the user may have open when I open this workbook.
Hope my question is clear and forgive me if its a really obvious solution. I'm really new to VB.
Thanks in advance
Patrick