Resizing text frames does not work in combination with text variables. Sorry.
Thanks Will, but why then does it work with the variable Metadata caption?
I have this working successfully in the same document.
It works together when an additional text—except space—is found in the same text frame. In most cases, running headers are only text variables. Maybe if you try to add an additional letter and apply a character style with no color. Try this.
Text variables are always treated as a single character, that's why it doesn't work with the auto size feature.
It's a limitation of the software and a major pain for many years.
Try InTools, Powerheaders. http://in-tools.com/products/plugins/power-headers/
Will- I tried adding another character to the text box but this made no difference.
Eugene- I'm trying to avoid the purchase of any 3rd party plugins due to budget constraints.
I realised that all I needed to do was use a wide paragraph rule to emulate a box behind the text, and make the text box long enough to hold all possible variables.
One other issue has now cropped up, the running header (character) only grabs the text up to the first return, but I need it to grab all text formatted with the Character Style (2-3 lines max).
I require a forced line break in the title (where the header is being pulled from) as it has a paragraph rule style attached, requiring a full return for each line of the title.
For the running head variable choose to capture the text from a character style rather than a paragraph style.