GetSaveAsFilename - Runtime error

T

takedown

Hi,
I'm trying to use the GetSaveAsFilename to grab the filename to use
with SaveAs. However, I keep getting the following error:

Run-time error '1004':
Method 'GetSaveAsFilename' of object '_Application' failed

I'm using the following code:

Do
xlFileName = xlApp.GetSaveAsFilename( _
Title:="Export SolidWorks Curve Data", InitialFilename:="SW
Curve Data", _
FileFilter:="Text (Tab delimited) (*.txt), *.txt, CSV (Comma
delimited) (*.csv), Excel Worksheet (*.xls), *.xls")
Loop Until xlFileName <> False

Thanks for any help.
 
B

Bob Phillips

Have you set xlApp correctly?

Show that code.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top