- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Greetings,
I'm struggling with this problem a while, I need a code that can change the shape only of the balloons with the item value is greater than 100.
We use to work with two part lists at the same drawing , one for purchased itens (BOM Item number 1 to 99), and another for the manufactured items (BOM Item number 101 to 299), for the first one, we use round shape balloon, and for the second, we use hexagonal shape.
I know this sounds useless because you can tell the difference by the number, but this is the way my company work.
I’m messing with this code, but I can figure out the line to change only the balloons greater than 100, this one change all balloons … and I have zero knowledge about programing.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oStyles As DrawingStylesManager
oStyles = oDrawDoc.StylesManager
Dim oSheet As Sheet
Dim oBalloon As Balloon
For Each oSheet In oDrawDoc.Sheets
For Each oBalloon In oSheet.Balloons
oBalloon.Style = oStyles.BalloonStyles.Item("Proprio")
Next
Next
Thank you!
Solved! Go to Solution.