Sellcodes
  • Browse
    • Login
    • Sign Up
  • Users are requesting the codes...
  • See all requests

Word: convert string in page break if it is not the last item on a page

I am creating a quotation document by importing a html file in Word. In the add-ons section I have a block of description and price for every add-on but I do not want a page break within any of those blocks. I would like to control pagination automatically and I thought about a CONDITIONAL_PAGE_BREAK placeholder string. In every page containing at least one of these strings, the macro should check if the CONDITIONAL_PAGE_BREAK string is the last item on the page. If not, it should convert the last CONDITIONAL_PAGE_BREAK string in a page break. Then it has to erase all the other remaining CONDITIONAL_PAGE_BREAK strings.

link-img

2

# Users who requested
the code (so far)

link-img

$8

Suggested price from buyers
at which they’d buy

link-img

$16

Potential revenues from requesters (actual
revenues can be significantly higher)

Time of last request:on Aug 17

Tags:Word, Html, Vba, Macro, Pagination

Sellers

If you own such codes, please set up an offer and then invite users to it by clicking on «Invite to offer».

Invite to offer

Buyers

If you’re also be willing to buy those codes then click on «I’d also buy it» (no commitment to buy, but please only click when you’re serious about it).

I'd also buy it!

Tell people about Sellcodes and get 20-40% on every resulting sale!

Spread the word
  • PARTICIPATE
  • Buy
  • Offer
  • Share
  • LEARN
  • About
  • Blog
  • FAQ
  • CONNECT
  • Twitter
  • Facebook
  • Contact
  • LEGAL
  • Terms
  • Privacy
  • © 2025 Sellcodes
Log in to your Sellcodes account
Keep me logged in Forgot your password?
Looking to create an account?
Sign up for Sellcodes
By creating an account you agree to our Terms Of Use and Privacy Policy
Did you mean to Login?