Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default Edit text of shape without selecting it

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Edit text of shape without selecting it

Tony,

Try it this way

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


--
Hope that helps.

Vergel Adriano


"bony_tony" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 76
Default Edit text of shape without selecting it

Thanks mate

On May 2, 2:06 pm, Vergel Adriano
wrote:
Tony,

Try it this way

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

--
Hope that helps.

Vergel Adriano



"bony_tony" wrote:
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- Hide quoted text -


- Show quoted text -



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
Add and edit a shape in VBA Hugo Jorgensen Excel Discussion (Misc queries) 2 May 21st 23 11:48 AM
Edit shape with snap to grid on only allows movement down and righ reb197 Excel Discussion (Misc queries) 5 September 29th 08 08:20 PM
How do I create and/or edit a bell shape graph? Maria E A Charts and Charting in Excel 1 January 4th 07 06:39 PM
Cutting and pasting large variable text into a text box shape usin AJL Excel Programming 0 October 30th 06 06:54 PM
Selecting record to edit using ADO Ken Valenti Excel Programming 6 September 24th 06 10:59 PM


All times are GMT +1. The time now is 01:17 PM.

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

About Us

"It's about Microsoft Excel"