How could i know??

Started by Visiomaniac, April 27, 2010, 05:36:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visiomaniac

Hey buddies, i have a question, how could i know the quantity of the properties in any shape by Vba code.???

thnks !!!

Yacine

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
Yacine

Visiomaniac

thnks a lot' bro!!! you 're amazing..XD :D

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: 170 (show)
Files included: 34 - 1321KB. (show)
Memory used: 1058KB.
Tokens: post-login.
Cache hits: 13: 0.00279s for 26,582 bytes (show)
Cache misses: 2: (show)
Queries used: 17.

[Show Queries]