Visio Guy

Visio Discussions => Programming & Code => Topic started by: Visiomaniac on April 27, 2010, 05:36:04 PM

Title: How could i know??
Post by: Visiomaniac on April 27, 2010, 05:36:04 PM
Hey buddies, i have a question, how could i know the quantity of the properties in any shape by Vba code.???

thnks !!!
Title: Re: How could i know??
Post by: Yacine on April 27, 2010, 06:21:27 PM
Try this:
Sub test()
Dim Shp As Visio.Shape
Set Shp = ActiveWindow.Selection(1)
If Shp.SectionExists(visSectionProp, visExistsAnywhere) Then
    t = Shp.Section(visSectionProp).Count
    Debug.Print t
End If
End Sub
Title: Re: How could i know??
Post by: Visiomaniac on April 28, 2010, 02:12:08 PM
thnks a lot' bro!!! you 're amazing..XD :D
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: 46 (show)
Files included: 25 - 925KB. (show)
Memory used: 769KB.
Tokens: post-login.
Cache hits: 6: 0.00116s for 22,292 bytes (show)
Cache misses: 1: (show)
Queries used: 8.

[Show Queries]