Wordart/Autoshapes and VBA

Boozer

Board Regular
Joined
May 20, 2002
Messages
52
I need to rummage through hundreds of excel spredsheets and determine if there is an autoshape/wordart (are they considered the same type of object in VBA?) If there is wordart I need the text contained in the wordart. I know how to open and search the spreadsheets, I just need to know what object or type autoshapes/wordart are and what to use to retrieve the text from the wordart. Thanks in advance for your help!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Code:
Sub GetT()
Dim sh As Shape

For Each sh In ActiveSheet.Shapes
    '// msoTextEffect
    If sh.Type = 15 Then
        MsgBox sh.TextEffect.Text
    End If
Next
    
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,506
Messages
6,055,807
Members
444,826
Latest member
aggerdanny

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top