View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Alex_DK Alex_DK is offline
external usenet poster
 
Posts: 1
Default How do i save as a textfile in a macro?

Hi
I have problems saving my text file in the right format?
I am working on a macro that opens a text file, changes a value to a value
found in another workbook, and saving the changed textfile with a new name.
The lines in the text files contains both text and numbers, and are seperated
by commas. The text file is opened with no delimiters and some of the lines
are changed.

The changing and renaming part works fine, but excel adds a " at each end of
every line in the new text file when the macro saves the file. This doesn't
happen when I save the file manually... Does anyone know how to avoid getting
the " when the macro saves the file?

Greetings
Alex