View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Andy Pope Andy Pope is offline
external usenet poster
 
Posts: 2,489
Default XL2007 - Shapes - Adjust 'Smiley Face'

Hi,

looks like the range of adjustment is +/- 0.005

Function Smile()
'
With ActiveSheet.Shapes(1)
.Adjustments.Item(1) = -0.05 ' full frown
DoEvents
MsgBox "Frowning"
.Adjustments.Item(1) = 0.05 ' full smile
End With
'
End Function

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"michael.beckinsale" wrote in message
...
Hi All,

The code posted below works in XL2003 and changes a 'happy smiley
face' into a 'frowning smiley face'. I know its sad (forgive the pun)
but can anybody tell me how to code this in XL2007?

It really is annoying that the macro recorder does not work for
charts, shapes etc in XL2007.


Sub test_smiley()
Application.ScreenUpdating = True
ActiveSheet.Shapes("Smiley Face 22").Select
Selection.ShapeRange.Adjustments.Item(1) = 0.7181
End Sub

All help gratefully received

Regards

Michael