Save as .txt

J

Jo HAN

Hi,

I have this code that works well:

Application.DisplayAlerts = False
With wb
.SaveAs "e:\data\sales\" & sh.Name & ".xls"

How ever when I change it to save as a text field is does not save it. I
waits for the save button before saving.

This is the line that I tried:

..SaveAs "e:\data\sales\" & sh.Name & ".txt", FileFormat _
:=xlUnicodeText, CreateBackup:=False

Can some one please help?

Tx
 

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