ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save as space delimited file from VBA (https://www.excelbanter.com/excel-programming/379857-save-space-delimited-file-vba.html)

Nash[_2_]

Save as space delimited file from VBA
 
Hi,
I'd like to save my file from VBA, but as a space delimited file,
i.e.with a single space between cell values. Does any of xlFileFormat
values produce this result? I really don't feel like testing each
one...

TIA,
Nash


Martin Fishlock

Save as space delimited file from VBA
 
Hi

I don't think that you can do it but there are a couple of options that I
can think of to solve it:

1. As as a CVS and then convert all commas to spaces (although this may
cause problems with other commas in the file.

2. save as a .prn formated text file and then delete mutliple spaces.

Have a think about or see what others come up with.

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Nash" wrote:

Hi,
I'd like to save my file from VBA, but as a space delimited file,
i.e.with a single space between cell values. Does any of xlFileFormat
values produce this result? I really don't feel like testing each
one...

TIA,
Nash




All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com