Question Locked

Query?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi,
How to Split the Microsoft Word Document pages?
pls sent the Sample codings.

3 replies

by wgs

A pagebreak is nothing more then a special ASCII character. Use the CHR (Character) Function to insert.

Some of the more commonly used ASCII codes:
Chr(9) = tab
Chr(11) = manual line break (shift-enter)
Chr(12) = manual page break
Chr(13) = vbCrLf (return)
Chr(14) = column break
Chr(30) = non-breaking hyphen
Chr(31) = optional hyphen
Chr(32) = space
Chr(34) = quotation mark
Chr(160) = nonbreaking space
For more see also "Chr$" under VBA Help.

USAGE EXAMPLE: Selection.TypeText text:=Chr(12)

see: www.jojo-zawawi.com/code-samples-pages/code-samples.htm

by peregrine

Thanks to JoJo Zawawi -- that's my page, not his. :D

Glad it helped ! That page started out as a cheat sheet back when I was programming macros, years ago.

This discussion is closed to new replies.