Open workbook without activating it
Dim wkbk as Workbook
set wkbk = ActiveWorkbook
Application.ScreenUpdating = False
workbooks.Open "C:\My documents\Mybook.xls"
wkbk.Activate
Application.ScreenUpdating = True
--
Regards,
Tom Ogilvy
"Kelley" wrote in message
om...
First: I am not much of a VBA coder. Usually, I record a macro and
edit it slightly.
I would like to create a macro that opens a specific workbook without
making it the active workbook. I'd like it to be transparent to the
user. Since this is going in a template, the user may not have saved
his current workbook, so I can't just switch back to a specific
workbookname.
Any ideas?
|