Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a straightforward spreadsheet holding 13 columns and 10-120 rows.
Using excel 2007. I need to alter the values in a column and save the sheet to a tab-delimited file with a unique filename. This process needs to be repeated for several columns. To automate the process I open the file with a filenumber and using 'for' loops use print # to write the data. The problem I have is writing the TAB into the file. I have tried all sorts of ways, ranging from the Tab argument (which just puts spaces to next print zone) to trying to get the hex character (0x09) to print. Is the only way write a tab-delimited file to use the workbook.saveas method with filetype = xltext? The code I want to use is of the form: For i = 1 To 8 For j = 1 To 11 vVal = myArray(i, j) Print #FileNumber, RTrim(vVal); Print #FileNumber, <<<TABcharacter Next j Print #FileNumber, Spc(1) Next i where TABcharacter is 0x09 Am I missing something obvious here??? I hope someone can help, its very frustrating. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting Tab Delimited Text File to A Comma Delimited Text File | Excel Programming | |||
Saving multi-tab excel file created from comma delimited text file | Excel Programming | |||
How can I save a file as a comma-delimited text file in Excel? | Excel Discussion (Misc queries) | |||
Export excel file to semicolon delimited text file | Excel Discussion (Misc queries) | |||
Open delimited text file to excel without changing data in that file | Excel Programming |