Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I cannot simply save the file to PRN because I do not want to send
everything. I already wrote a loop that picks up the precise data and writes to a line in the file. This is basically what I have come up with (with some help from other groups!): For L = 5 To daLastRow 'Lot of mess but writes to correct positions numberToFormat = Cells(L, 26) sNumber = Format(numberToFormat, "#.00") B1 = Space(17 - Len(sNumber)) & sNumber numberToFormat = Cells(L, 29) sNumber = Format(numberToFormat, "#.00") b2 = Space(17 - Len(sNumber)) & sNumber numberToFormat = Cells(L, 32) sNumber = Format(numberToFormat, "#.00") Print #1, Tab(5); Left(Cells(2, 1), 6); Tab(14); tsCol; _ B1; b2; B3; B4; B5; B6; B7; B8; B9; B10; B11; B12 Next L Just hoping that there was an automatic way to line up in a position without the calisthenics. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
open text file in Excel and remove columns | Excel Discussion (Misc queries) | |||
How do I prevent a text to columns while opening a csv file in Excel | Excel Discussion (Misc queries) | |||
How do I save excel file in text format without columns? | Excel Discussion (Misc queries) | |||
Can I take a huge irregular text file and place it into columns? | Excel Discussion (Misc queries) | |||
.csv file Text to Columns | Excel Worksheet Functions |