Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default XL2007 - Shapes - Adjust 'Smiley Face'

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default XL2007 - Shapes - Adjust 'Smiley Face'


Hi Andy,

Sorry for the delay in replying.

Your solution worked fine. How did you find out what metrics to use ie
+0.05 & -0.05?

I thoroughly inspected the online help and couldn't find anything and
resorted to using the macro recorder in XL2003 to get the code l
posted.


Regards

Michael

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default XL2007 - Shapes - Adjust 'Smiley Face'

Hi,

I just experimented some code linked to a slider with the values +/-1
which allowed me to deduce the actual range of values.

Cheers
Andy

michael.beckinsale wrote:
Hi Andy,

Sorry for the delay in replying.

Your solution worked fine. How did you find out what metrics to use ie
+0.05 & -0.05?

I thoroughly inspected the online help and couldn't find anything and
resorted to using the macro recorder in XL2003 to get the code l
posted.


Regards

Michael


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
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
excel document with shapes on it but the shapes do not print [email protected] Excel Worksheet Functions 2 October 22nd 09 06:17 PM
Smiley changes colors based on a number in a cell NG Excel Discussion (Misc queries) 8 September 24th 09 07:26 PM
Macro or code to insert Shape (Say Smiley face) in XL? Giles Excel Programming 1 October 14th 08 05:55 PM
Remove/Re-assign Smiley Face Macro? telewats Excel Discussion (Misc queries) 1 January 26th 06 06:07 PM
how can i get a picture of a smiley face loser! Setting up and Configuration of Excel 1 May 27th 05 02:55 AM


All times are GMT +1. The time now is 04:57 PM.

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"