Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Macro to edit WordArt entries?

Does anyone know of a macro which can do the following please?

Start with a spreadsheet WordArt.xls containing WordArt entries of
various types and colours. The text string is identical in each case.
I want to change the text just once, to get a fully revised
spreadsheet. IOW, instead of selecting each entry one by one and using
Edit Text, which would be very tedious.

Any help would be much appreciated please.

--
Terry, West Sussex, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Macro to edit WordArt entries?

Try this - goes through all of the sheets in a workbook and any shape that is
of type 15 (WordArt), changes it to the text you enter at the beginning.
Just enter nothing to quit that without changing any WordArt objects:


Sub EditWordArt()
'
'
Dim strNewText As String
Dim anySheet As Worksheet
Dim anyWAObject As Shape

strNewText = InputBox("Enter new text for all WordArt Objectss", "New
Text", "")
If Trim(strNewText) = "" Then
Exit Sub
End If
For Each anySheet In Worksheets
For Each anyWAObject In anySheet.Shapes
If anyWAObject.Type = 15 Then ' WordArt item
anyWAObject.TextEffect.Text = strNewText
End If
Next
Next

End

"Terry Pinnell" wrote:

Does anyone know of a macro which can do the following please?

Start with a spreadsheet WordArt.xls containing WordArt entries of
various types and colours. The text string is identical in each case.
I want to change the text just once, to get a fully revised
spreadsheet. IOW, instead of selecting each entry one by one and using
Edit Text, which would be very tedious.

Any help would be much appreciated please.

--
Terry, West Sussex, UK

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Create a Macro to Edit a Variable Amount of Information Matt New Users to Excel 4 August 12th 06 10:05 PM
Macro to stop Tools, Options, Edit sparx Excel Discussion (Misc queries) 0 May 25th 06 09:28 PM
Search, Copy, Paste Macro in Excel [email protected] Excel Worksheet Functions 0 January 3rd 06 06:51 PM
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM
Find and edit column entries cencoit Excel Discussion (Misc queries) 2 September 28th 05 05:19 PM


All times are GMT +1. The time now is 09:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"