- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
Got an iLogic code that gives me a list (In a message box) of in what View a Balloon is on every sheet of the drawing.
Is there a way to get this list somehow written out to a .txt file or even better, an Excel document.
Here is the iLogic.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
' Set a reference to the active sheet.
Dim oActiveSheet As Sheet
oActiveSheet = oDrawDoc.ActiveSheet
Dim oBalloon As Balloon
Dim oBalloonValueSet As BalloonValueSet
Dim oSheet As Sheet
For Each oSheet In oDrawDoc.Sheets
If oMesssage = "" Then
oMesssage = oSheet.Name
Else
oMesssage = oMesssage & vbLf & oSheet.Name
End If
oSheet.Activate
For Each oBalloon In oDrawDoc.ActiveSheet.Balloons
oViewName = oBalloon.ParentView.Name
oItem = oBalloon.BalloonValueSets.Item(1).Value
oMesssage = oMesssage & vbLf & "Balloon # " & oItem & " is on " & oViewName
Next
oMesssage = oMesssage & vbLf & "___________________"
Next
oActiveSheet.Activate 'return to original sheet
MessageBox.Show(oMesssage, "iLogic")
I don't even know how to start getting it out to a .txt file or Excel.
Thanks in advance.
//Jesper
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Solved! Go to Solution.
Link copied