Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Change Shape text / Color

Am trying to find out how to change the text of a shape with Excel 2007. So
far have:

ActiveSheet.Shapes(Application.Caller).OLEFormat.O bject.Text = "CIP"

which works, but was expecting just shapes().text or .caption, neither of
which work. Is there a shorter form way of changing the text?

Also, with a linear gradient for the colour(color) of the shape, can set the
fore and back colours, but not sure how to set the Main colour:

ActiveSheet.Shapes(Application.Caller).Fill.BackCo lor.RGB = RGB(255,
153, 0)
ActiveSheet.Shapes(Application.Caller).Fill.ForeCo lor.RGB = RGB(255, 0, 0)

Probably getting confused with gradient stops etc.
Is there a way to call the preset styles under the "Format" drop-down for
shape styles, such as "Intense Effect - Accent 3"

Did figure out how to make it "Glow" though:
With Sheets("Input").Shapes("Oval 35")
.Glow.Radius = 20 'set radius = 0 to turn off (default), max radius is 20
.Glow.Color.RGB = RGB(255, 153, 0)
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Change Shape text / Color

Sub fixtext()
ActiveSheet.Shapes(Application.Caller).Select
Selection.Characters.Text = "Hello World"
End Sub
--
Gary''s Student - gsnu201001
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,180
Default Change Shape text / Color

Excel 2007
Sub NoSelect()
With ActiveSheet.Shapes(1).TextEffect
..Text = "Hello World"
..FontBold = True
..FontName = "Ariel"
End With
End Sub
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Change Shape text / Color

Thanks heaps to both of you, works well

Any thoughts on preset styles or gradient colours?
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
send color filled shape behind text Newbie Excel Discussion (Misc queries) 4 April 4th 23 12:42 PM
Change text in rectangle shape Carole O Excel Programming 0 January 23rd 07 12:36 AM
Change text in rectangle shape Don Guillett Excel Programming 0 January 22nd 07 11:54 PM
Change color of Shape based on condition - Macro? WBTKbeezy Excel Programming 3 January 20th 07 08:57 PM
Change Shape Text rhani111 Excel Worksheet Functions 2 July 14th 06 02:31 PM


All times are GMT +1. The time now is 08:55 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"