Message 1 of 10
Balloons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This code will find the balloon #10 fine.
How wiil the code be modifiedI if I were looking to find # 9?
See attached Pic
Public Sub Findballoon()
Dim oDrawing As DrawingDocument
Set oDrawing = ThisApplication.ActiveDocument
Dim osheet As Sheet
Set osheet = oDrawing.ActiveSheet
Dim oBalloon As Balloon
For Each oBalloon In osheet.Balloons
If oBalloon.BalloonValueSets(1).value = "10" Then
MsgBox "Found it"
Else
End If
Next oBalloon
End Sub
Thanks Wayne
How wiil the code be modifiedI if I were looking to find # 9?
See attached Pic
Public Sub Findballoon()
Dim oDrawing As DrawingDocument
Set oDrawing = ThisApplication.ActiveDocument
Dim osheet As Sheet
Set osheet = oDrawing.ActiveSheet
Dim oBalloon As Balloon
For Each oBalloon In osheet.Balloons
If oBalloon.BalloonValueSets(1).value = "10" Then
MsgBox "Found it"
Else
End If
Next oBalloon
End Sub
Thanks Wayne