Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The following macro exports a specified portion of Excel file as
a .prn: Sub ExportA1() Sheets("A1").Select ActiveWindow.SmallScroll Down:=-3 Range("D321:AR350").Select Selection.Copy Sheets.Add ActiveSheet.Paste Application.CutCopyMode = False ActiveWorkbook.SaveAs Filename:= _ "Detail.prn", FileFormat:=xlTextPrinter, CreateBackup:=False End Sub The output looks more or less like this: SKU 01 0 570511455 2 1 2.49 2.49 SKU 01 0 570511455 2 1 14.99 -1.50 13.49 Whereas I want it to look like this: SKU 01 0 570511455 2 1 2.49 2.49 SKU 01 0 570511455 2 1 14.99 -1.50 13.49 Does SaveAs have a parameter which would compress any sequence of spaces into one space? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom Format alphanumberic value with spaces | Excel Worksheet Functions | |||
Can I retrieve a value and its format using the minimum function? | Excel Worksheet Functions | |||
Conditional format of minimum number | Excel Worksheet Functions | |||
Can Excel Export Data to Word Format? | Excel Discussion (Misc queries) | |||
Empty Cells, Spaces, Cond Format? | Excel Discussion (Misc queries) |