Solved

Capture Text in Word Art; Excel 2003

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

863 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now