Workbook.Open Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Set oWB = Workbooks.Open(sFile, UpdateLinks = False, ReadOnly = True)
should be

Set oWB = Workbooks.Open(sFile, UpdateLinks:= False, ReadOnly:=True)
 
Back
Top