![]() |
#1
|
|||
|
|||
![]()
Hello everybody!
I am about to lose my mind trying to create this [insert bad language] header field. So in my current document I want the current chapter name displayed in the header. Nothing easier than that using the Styleref Header 1 field. But this field returns an error on pages with no header 1. Now I want to create an If field that does not return an error, but this is where I struggle. My code: IF STYLEREF 1 = "Error!*", "", STYLEREF 1 While I am very good at VBA and creating functions in Excel, I have no clue how the syntax here works... ![]() Last edited by Charles Kenyon; 10-21-2018 at 01:32 PM. Reason: Mark as solved |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
alan100 | Mail Merge | 5 | 12-12-2017 08:32 PM |
StyleRef field shows <> | Stoic | Word | 2 | 04-20-2017 04:42 AM |
query returns garbage after 255 chars from a text field | word_user | Word VBA | 0 | 06-02-2014 02:34 PM |
Problem using a StyleRef field in footer | sleake | Word | 10 | 06-27-2013 07:45 AM |
![]() |
Ulodesk | Word | 4 | 03-21-2012 11:15 AM |