P
Philippe Perrault
I have a database report that is exported to Microsoft excel. Everything is
working fine up to this line of code: Set XlBook = GetObject(FNAME)
The code to define FNAME is as follows.
strFilter = ahtAddFilterItem(strFilter, "Microsoft Office Excel Files(*.xls)
", "*.xls")
FNAME = ahtCommonFileOpenSave(Filter:strFilter, OpenFile:=False,
DialogTitle:="Save file as:", Flags:=ahtOFN_HIDEREADONLY)
If FNAME = "" Then
Exit Sub
End If
All of this code works fine, a dialog box opens and I select a path and
enter a file name. All the code runs fine up to this point: Set XlBook =
GetObject(FNAME) where I get the Runtime Error 432.
Appricate any assisstance.
working fine up to this line of code: Set XlBook = GetObject(FNAME)
The code to define FNAME is as follows.
strFilter = ahtAddFilterItem(strFilter, "Microsoft Office Excel Files(*.xls)
", "*.xls")
FNAME = ahtCommonFileOpenSave(Filter:strFilter, OpenFile:=False,
DialogTitle:="Save file as:", Flags:=ahtOFN_HIDEREADONLY)
If FNAME = "" Then
Exit Sub
End If
All of this code works fine, a dialog box opens and I select a path and
enter a file name. All the code runs fine up to this point: Set XlBook =
GetObject(FNAME) where I get the Runtime Error 432.
Appricate any assisstance.