Edit text of shape without selecting it

  • Thread starter Thread starter bony_tony
  • Start date Start date
B

bony_tony

Hi,
I've got the following which edits the text on a shape;

ActiveSheet.Shapes("Button 12988").Select
Selection.Characters.Text = "More Info"

I assumed

ActiveSheet.Shapes("Button 12988").Characters.Text = "More Info"

would do the same thing, but it gives me an error.
How do edit the text without selecting the shape??

Thanks
Tony
 
Tony,

Try it this way

activesheet.shapes("Button 12988").OleFormat.Object.Caption="More Info"
 
Thanks mate

Tony,

Try it this way

activesheet.shapes("Button 12988").OleFormat.Object.Caption="More Info"

--
Hope that helps.

Vergel Adriano










- Show quoted text -
 
Back
Top