![]() |
Workbook.Open Question
I've been having some intermittent failures in a macro I'm running. I just
realized that I had Set oWB = Workbooks.Open(sFile) Instead of Set oWB = Workbooks.Open(sFile, UpdateLinks = False, ReadOnly = True) Could that be causing my problem if someone else is using the file? Thanks, Barb Reinhardt |
Workbook.Open Question
Set oWB = Workbooks.Open(sFile, UpdateLinks = False, ReadOnly = True)
should be Set oWB = Workbooks.Open(sFile, UpdateLinks:= False, ReadOnly:=True) -- Regards, Tom Ogilvy "Barb Reinhardt" wrote: I've been having some intermittent failures in a macro I'm running. I just realized that I had Set oWB = Workbooks.Open(sFile) Instead of Set oWB = Workbooks.Open(sFile, UpdateLinks = False, ReadOnly = True) Could that be causing my problem if someone else is using the file? Thanks, Barb Reinhardt |
All times are GMT +1. The time now is 11:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com