Visio Guy

Visio Discussions => Programming & Code => Topic started by: JFme on September 15, 2011, 04:14:21 PM

Title: Code to Increment Text Box Margin
Post by: JFme on September 15, 2011, 04:14:21 PM
I have very frequent need to change the top margin of the text block of shapes.  Each such change, however, requires multiple mouse clicks (select shape, right click Format/Text/Text Block/Margins).  Would like code that I can install behind a button so that I can select a shape(s), then for each click of the button the top margin of the text block of that selected shape(s) increments by +2 pt. (I would also have another button which increments by -2 pt.).  For example, if the top margin of a selected shape is 12 pt., multiple clicks of the button would increment 12 --> 14 --> 16 --> etc.  This would save me lots of time and reduce wear and tear on my hands!  Thanks very much for any help.
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 41 (show)
Files included: 25 - 925KB. (show)
Memory used: 771KB.
Tokens: post-login.
Cache hits: 7: 0.00104s for 22,301 bytes (show)
Cache misses: 1: (show)
Queries used: 9.

[Show Queries]