LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default rotating an Isoceles Triangle in the shape of a Gauge needle

Hi,

does anyone know how to rotate an Isosceles triange (in the shape
of a Speedometer needle) from 0 to 100 (the speedometer dial is 240
deg in shape).

i am basically finding the x & y to center the Isosceles needle in
the center of the speedometer by taking the LEFT, WIDTH & TOP of the
speedometer image.
x=shp.Left+Shp.Width/2
y=shp.Top+Shp.Height/2

so the above would remain fixed for centering the Isosceles
triangle.

but how to calculate the Angle or the new X, Y positions for the
point traversing the Speedometer Arc which is 240 degrees in shape
based on a cell values ranging from 0 to 100?

any help would be most appreciated.

Please see attached file.

 
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
Create shape, name shape, add text to shape Rick S. Excel Programming 2 February 27th 10 07:11 PM
Use a shape as a gauge. Mike K Excel Programming 3 May 5th 09 01:32 PM
If I draw a shape in Excel (say a triangle), can I colour it? David Burne Jones Excel Worksheet Functions 4 August 4th 08 08:44 PM
How do I rotate a triangle diagram shape. Rellim Excel Discussion (Misc queries) 1 January 24th 08 06:48 PM
How to find a needle in a haystack? ScottJSP Excel Discussion (Misc queries) 1 February 4th 05 04:12 AM


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