Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Creating Page Break in Print Statement

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Creating Page Break in Print Statement

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Creating Page Break in Print Statement

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

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print column on left of page then break & go to right Gizmeaux Excel Discussion (Misc queries) 2 August 5th 09 07:36 PM
Bottom Border at Page Break Won't Print Ryan Excel Discussion (Misc queries) 4 January 29th 09 04:11 PM
PRINT PAGE BREAK VIEW AS WATERMARK FIOR EACH PAGE RALPH Setting up and Configuration of Excel 3 March 16th 06 11:08 PM
I need to print cells under the orginal line instead of page break InvoCare Excel Discussion (Misc queries) 1 August 29th 05 08:32 PM
printing - creating new files on each page break Tere Gardner Excel Worksheet Functions 4 May 4th 05 09:12 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"