Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Auto_Open macro in which I want to have
O:\PT_DRIVER_SCHED\Templates\EmployeeList.xls open in the background without losing focus on the current workbook. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim wb As Workbook, wn As Window Dim sFile As String sFile = "path_and_filename.xls" Application.ScreenUpdating = False On Error Resume Next Set wb = Workbooks.Open(sFile) If Not wb Is Nothing Then For Each wn In wb.Windows wn.Visible = False Next End If On Error GoTo 0 Application.ScreenUpdating = True End Sub Perhaps it would be better if you save your file as 'hidden' in the first place Regards, Peter T "Patrick Simonds" wrote in message ... I have an Auto_Open macro in which I want to have O:\PT_DRIVER_SCHED\Templates\EmployeeList.xls open in the background without losing focus on the current workbook. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hidden Background Data File | Excel Worksheet Functions | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) | |||
How to open file in the background. It is possible? | Excel Programming | |||
How to open file in the background. It is possible? | New Users to Excel | |||
Opening a Workbook in the Background | Excel Programming |