Update WordArt via VBA?

Pascal

Board Regular
Joined
Jun 6, 2007
Messages
200
Hi,

I wonder if someone can help or point me in the right direction?

I want to update 3 WordArt's that are on a sheet. The text I would like them to have would be what ever the user enters into a cell.

Is this possible?

Also, what if there are 6 WordArt's on the sheet and I just need to update 3 of them, how can select or identify the 3 I want to update?

Many Thanks & Regards,

Andrew
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,

Just to let you know that I've managed to figure it out.....

Code:
Sub mytest()

Dim myDocument As Object

Set myDocument = Worksheets(1)

myDocument.Shapes("Rectangle 1").TextFrame.Characters.Text = "Testing"
myDocument.Shapes("Rectangle 2").TextFrame.Characters.Text = "Testing"

End Sub

Regards
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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