Author Topic: Rotate text issue?  (Read 1498 times)

0 Members and 1 Guest are viewing this topic.

tabuariki

  • Newbie
  • *
  • Posts: 1
Rotate text issue?
« on: July 14, 2023, 11:52:16 AM »
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

  • Hero Member
  • *****
  • Posts: 1284
    • UnmanagedVisio
Re: Rotate text issue?
« Reply #1 on: July 14, 2023, 01:05:31 PM »
visShape.CellsU("TxtAngle").FormulaU = "90 deg"

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4834
  • Ideas Visio-lized into solutions
Re: Rotate text issue?
« Reply #2 on: July 14, 2023, 07:50:20 PM »
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)
« Last Edit: July 14, 2023, 07:56:43 PM by wapperdude »
Visio 2019 Pro