- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I have been writing to Excel from Fortran for a while now using the $Workbook_SaveAs COM subroutine. I would like to turn off a dialog box from Excel, which pops up each time I ask my program to save a given excel file to a location where an old version of the file already exists. I think that I need to set the ConflictResolution variable to "xlLocalSessionChanges", but do not know how to do this. My code snippit is below:
CALL VariantInit(vBSTR3)
vBSTR3%VT = VT_BSTR
bstr3 = ConvertStringToBSTR(outputFileName)
vBSTR3%VU%PTR_VAL = bstr3
Call VariantInit(vConflict)
vConflict%VT = VT_BSTR
conflict = ConvertStringToBSTR("xlLocalSessionChanges")
vConflict%VU%PTR_VAL = conflict
call $Workbook_SaveAs(workbook, vBSTR3, ConflictResolution=vConflict)
Many thanks in advance for any advice you may have to give,
Justin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page