Solved

Capture Text in Word Art; Excel 2003

Posted on 2011-03-15
4
332 Views
Last Modified: 2012-05-11
I have a spreadsheet with more than 100 tabs.  The data I need to identify is located in a Word Art graphic at the top of each tab.  I plan to write a loop to go through each tab and look at each word art object, but I can't figure out the code to capture the text in the word art.  Help would be much appreciated.
0
Comment
Question by:SueJStevens
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 35142990
This will get you started:

Public Sub ExamineWordArt()

    Dim Worksheet As Worksheet
    Dim Shape As Shape
   
    For Each Worksheet In ThisWorkbook.Worksheets
        For Each Shape In Worksheet.Shapes
            MsgBox Shape.OLEFormat.Object.ShapeRange.TextEffect.Text
        Next Shape
    Next Worksheet

End Sub

Kevin
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 35143004
A refinement to only look at WordArt shapes:

Public Sub ExamineWordArt()

    Dim Worksheet As Worksheet
    Dim Shape As Shape
   
    For Each Worksheet In ThisWorkbook.Worksheets
        For Each Shape In Worksheet.Shapes
            If Shape.Type = msoTextEffect Then
                MsgBox Shape.OLEFormat.Object.ShapeRange.TextEffect.Text
            End If
        Next Shape
    Next Worksheet

End Sub

Kevin
0
 

Author Comment

by:SueJStevens
ID: 35149058
Thank you.  Later on today I'll be able to have time to test this and get you feedback.
0
 

Author Closing Comment

by:SueJStevens
ID: 35166508
Thank you.  This is exactly what I needed!
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question