Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2006

Tip: Looking for answers? Try searching our database.

How to Insert a Page Break (Using VBA)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DevDaniel - 31 Jul 2006 20:49 GMT
I have: a fixed width text file

I want: to insert a page break after each account listing, using VBA

Sample file:

Account: 1000                                          Date: July 31, 2006
Statement Month: July 2006
Trans    Date               Description                    Amount
-------   ----------------  ---------------------------  ----------------
0035     07/01/2006     apples, crate                            199.99
0064       07/05/2006     bananas, crate                         58.00

Account: 1001                                          Date: July 31, 2006
Statement Month: July 2006
Trans    Date               Description                    Amount
-------   ----------------  ---------------------------  ----------------
0587     07/01/2006     grapes, crate                            120.00
0952     07/05/2006     orange juice, 64L                        60.00
0587     07/26/2006     kiwi, crate                                200.00

...
Jezebel - 31 Jul 2006 23:13 GMT
Easier to insert it before, if you can deal with the superfluous break at
the start. Find: "Account:" Replace with: "^m^&"

>I have: a fixed width text file
>
[quoted text clipped - 18 lines]
>
> ...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.