Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2020, 02:02 PM
RAFCRIK RAFCRIK is offline Use StyleRef based on previous page - IF this-and-that Windows 10 Use StyleRef based on previous page - IF this-and-that Office 2016
Novice
Use StyleRef based on previous page - IF this-and-that
 
Join Date: Aug 2020
Posts: 6
RAFCRIK is on a distinguished road
Default Use StyleRef based on previous page - IF this-and-that

Hello,

My apologies in advance for being yet another noob who abuses this forum for his own problems... I really have practically no knowledge of Visual Basic or the "Fields" of Word. But I do have a project in which they (hopefully) offer the grail to my quest.

Here are the variables of what I want to achieve:
  • I only need it in the header of certain (luckily succeeding each other) sections (so maybe using placeholders like £ and µ might help?)
  • If the first line of the page is in style "Kop 1;REGEL;Rule" OR in style "Kop 2;SECTIE;Section":
    £ should be { STYLEREF "Kop 2;SECTIE;Section" \n \t \* MERGEFORMAT }.


    µ should be { STYLEREF "Kop 2;SECTIE;Section" \* MERGEFORMAT }.
  • If the first line of the page is in neither style "Kop 1;REGEL;Rule" nor "Kop 2;SECTIE;Section":
    £ should be { STYLEREF "Kop 2;SECTIE;Section" \l \n \t \* MERGEFORMAT } of the previous page.
    µ should be { STYLEREF "Kop 2;SECTIE;Section" \l \* MERGEFORMAT } of the previous page.
In essence, it's a header like in a dictionary: not the next "title", but the one to which the first line of the page belongs.

Do you see any possibility to make this magic happen?

Thanks in advance for your help!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto fill based on previous entry geojf3 Word VBA 6 11-25-2019 06:49 AM
Start page numbering on second page ("link to previous" is greyed-out) seanspotatobusiness Word 1 07-11-2018 10:33 AM
Use StyleRef based on previous page - IF this-and-that Table on top of page breaks the paragraph on previous page iffee82 Word Tables 18 05-10-2018 02:44 AM
Use StyleRef based on previous page - IF this-and-that Table adding cells to previous page with room still on current page. gedet Word 1 01-03-2018 10:35 AM
Use StyleRef based on previous page - IF this-and-that MS Word, page goes to next page when entering data on previous page munna94 Word 2 12-30-2010 08:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft