Solved

Capture Text in Word Art; Excel 2003

Posted on 2011-03-15
4
333 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

691 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