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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top