News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Rotate text issue?

Started by tabuariki, July 14, 2023, 04:52:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tabuariki

im having trouble finding resources for using visio with vba macros. there are multiple things im trying to work out, but currently i need my text to rotate 90 degrees counter clockwise. visShape.CellsU("TextDirection").FormulaU = "1" works with rotating counterclockwise, but visShape.CellsU("TextDirection").FormulaU = "2" and visShape.CellsU("TextDirection").FormulaU = "3" do nothing. any suggestions?

Nikolay

visShape.CellsU("TxtAngle").FormulaU = "90 deg"

wapperdude

#2
The TextDirection cell is not used for angular rotations.  It only allows the text to flow horizontally or vertically.  Allowed entry values are either 0 or 1.  See https://learn.microsoft.com/en-us/office/client-developer/visio/textdirection-cell-text-block-format-section

For more comprehensive text treatment, see Designing Text Behavior, https://learn.microsoft.com/en-us/previous-versions/office/developer/office-xp/aa200986(v=office.10)
Visio 2019 Pro

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 178 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1079KB.
Tokens: post-login.
Cache hits: 12: 0.00147s for 26,766 bytes (show)
Cache misses: 1: (show)
Queries used: 15.

[Show Queries]