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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Pascal

Board Regular
Joined
Jun 6, 2007
Messages
200
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,836
Messages
5,833,911
Members
430,244
Latest member
Ireland1

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
Top