Not saving as xls file

S

sgl

Hi all,

I am using Excel 2003 with Vista.

I have an Import/Export routine creating and saving data in a new workbook.
The New WkBk is being "SaveAs, xlNormal". The problem I have is that it is
being saved in a non recognisable format and I am requested to chose a
program to view it with.

In the File Open form I cannot see the file until I activate Files of Type
All Files. When I change the extension to ".xls" I can view the file in the
File Open and can open the file in Excel. It is saved as an Excel file. .

Has anyone come across such a problem? Have I inadvertantly triggered
something in my code?

Many thanks/sgl
 
P

Patrick Molloy

please show the code
if the workbook is assignt to WB ( a workbook object)

then your code should be
WB.SaveAs sFileName

where sFilename contains the name as text excluding the ".xls"
 

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