Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am extracting data from a worksheet to a text file using a series of print
statements. I am using vbCrLf to insert line breaks, how do I insert a page break ? Although the target file is a text file it will finally be opened in Word and I need the page breaks to create the pagination. Currently I insert a dummy character string and use the Word Find and Replace to insert the page breaks, but this is not ideal. TIA -- Cheers Nigel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You could try hex-0C (chr(12) in code).
Nigel wrote: I am extracting data from a worksheet to a text file using a series of print statements. I am using vbCrLf to insert line breaks, how do I insert a page break ? Although the target file is a text file it will finally be opened in Word and I need the page breaks to create the pagination. Currently I insert a dummy character string and use the Word Find and Replace to insert the page breaks, but this is not ideal. TIA -- Cheers Nigel -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Dave that does the trick
-- Cheers Nigel "Dave Peterson" wrote in message ... You could try hex-0C (chr(12) in code). Nigel wrote: I am extracting data from a worksheet to a text file using a series of statements. I am using vbCrLf to insert line breaks, how do I insert a page break ? Although the target file is a text file it will finally be opened in Word and I need the page breaks to create the pagination. Currently I insert a dummy character string and use the Word Find and Replace to insert the page breaks, but this is not ideal. TIA -- Cheers Nigel -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I print column on left of page then break & go to right | Excel Discussion (Misc queries) | |||
Bottom Border at Page Break Won't Print | Excel Discussion (Misc queries) | |||
PRINT PAGE BREAK VIEW AS WATERMARK FIOR EACH PAGE | Setting up and Configuration of Excel | |||
I need to print cells under the orginal line instead of page break | Excel Discussion (Misc queries) | |||
printing - creating new files on each page break | Excel Worksheet Functions |