Hi. Certain shapes have shape data:
DevType
Room
DevNum
RequiresPower
I want to:
- set TheText to Room & "-" & DevType & "-" & DevNum
- set the bounding box for TheText to if(Prop.RequiresPower, THEMEGUARD(RGB(255,0,0)), THEMEVAL())
I think the bounding box part is easy...it appears to go in LineFormat.LineColor.
Where do I set TheText?
You can try "insert field" (Insert => Field => Formula)
On what object/shapesheet/shapesheet category am I inserting this field?
It's in the menu (tab "Insert"), you don't need shapesheet for that.
https://support.office.com/en-us/article/insert-a-text-field-into-a-shape-0225c22e-3e5e-4ea7-9ca0-1ec91386cb1e
Thanks!
Now...is there a way to get more than one displayed. I tried "adding" another text field, but it replaced the first one.
Yes, you can add as many fields as you want..
First select the shape, then start text editing (hit F2), and then use this command.
Alternatively, use Insert Field, "Custom Formula", and type full formula in the input box.
To clarify what Nikolay said, after you insert field, go back to the shape, then, in text mode, place cursor at end of inserted field...hit return to move to start another line. Then, go and do another Field insert. Note, make sure no text is selected when you do this. You're merely placing the cursor where you want the next insert to occur.
Wapperdude