PC Review


Reply
Thread Tools Rate Thread

Change Shape text / Color

 
 
Bryce
Guest
Posts: n/a
 
      1st Mar 2010
Am trying to find out how to change the text of a shape with Excel 2007. So
far have:

ActiveSheet.Shapes(Application.Caller).OLEFormat.Object.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.BackColor.RGB = RGB(255,
153, 0)
ActiveSheet.Shapes(Application.Caller).Fill.ForeColor.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
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      2nd Mar 2010
Sub fixtext()
ActiveSheet.Shapes(Application.Caller).Select
Selection.Characters.Text = "Hello World"
End Sub
--
Gary''s Student - gsnu201001
 
Reply With Quote
 
Herbert Seidenberg
Guest
Posts: n/a
 
      2nd Mar 2010
Excel 2007
Sub NoSelect()
With ActiveSheet.Shapes(1).TextEffect
..Text = "Hello World"
..FontBold = True
..FontName = "Ariel"
End With
End Sub
 
Reply With Quote
 
Bryce
Guest
Posts: n/a
 
      2nd Mar 2010
Thanks heaps to both of you, works well

Any thoughts on preset styles or gradient colours?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change color of a shape temporarily Patrick Microsoft Powerpoint 2 17th Jun 2009 09:59 PM
Change color of Shape based on condition - Macro? =?Utf-8?B?V0JUS2JlZXp5?= Microsoft Excel Programming 3 20th Jan 2007 08:57 PM
Change background color of shape through macro =?Utf-8?B?SmVubmlmZXI=?= Microsoft Powerpoint 9 25th May 2006 09:00 PM
change the cursor shape/color in MS Word 2003 =?Utf-8?B?TWFjQ2x1cmc=?= Microsoft Word Document Management 2 17th Mar 2006 08:33 AM
Change color and shape of Control Tip LCalaway Microsoft Access Forms 5 20th Oct 2004 02:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:57 AM.