Setting dyn proprties for BackColor & LinkedFont to indexed values

Setting dyn proprties for BackColor & LinkedFont to indexed values

Hi,

I'm trying to set the DynProperties for an element but its not liking it as I'm trying to set them to 'linked' values.
elbutton.DynProperties("BackColor") = "8000000E"



elbutton.DynProperties("LinkedFont") = "Standard font2"


Help file & forum searches aren't clear so could anyone provide an example code for how to do it?
I don't want to hardcode the colour to an RGB value, as I'm trying to reference a colour on palette... an XML export shows me 8000000E (14th colour on my palette)

Same for font- I want it to reference the font list so that if I change the font list I don't have to change all the instances of the text elements across multiple pages.

How is this possible in VBA (even a VSTA example would help).

Many thanks in advance.

Dave

This is a migrated post! Originally posted on 30.04.2019 by user HMIdeveloper123. Please be aware that information can be outdated.