View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] rmanchu@gmail.com is offline
external usenet poster
 
Posts: 2
Default vba excel fileopen

hi

with vba; i've got an excel workbook open as readonly and i need to
open the same
as writable to write some data.

Set XL_WB = XL_App.Workbooks.Open(FileName:=EXCEL_FILENAME,
ReadOnly:=True)
Set XL_WB_tmp = XL_App.Workbooks.Open(FileName:=EXCEL_FILENAME, _
ReadOnly:=False, _
IgnoreReadOnlyRecommended:=True)

but i keep getting a warning message saying the file is open and that
discarding the file wud result in changes being lost ...

excel won't open the same file twice, one readonly and other writable?

how to avoid this?

i DON'T want to close the readonly file. the excel file is shared
resource file. multiple users would access the file in readonly mode.
atleast in theory ...

please help