Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can Anyone help
I need to get an image to move around an active window on activation of the Excel sheet. Thanking you in antisipation Kev |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can you clarify "move around"?
"Kev Eames" wrote: Can Anyone help I need to get an image to move around an active window on activation of the Excel sheet. Thanking you in antisipation Kev |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Kev,
Add you image to the sheet and give it a name eg: MoveAround. Create for this sheet the next macro Private Sub Worksheet_Activate() ActiveSheet.Shapes("MoveAround").Select Dim p As Double Dim s As Integer p = 3.14159265359 / 180 For s = 0 To 360 Selection.Left = 100 + Sin(s * p) * 90 Selection.Top = 100 + Cos(s * p) * 90 Next End Sub Hoop this helps Executor |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Thanks very much, works a treat (The Muts Nuts) Kev *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
movement | Excel Discussion (Misc queries) | |||
object movement | Excel Programming | |||
Controlling the movement of a drawing object | Excel Programming | |||
Confusion about how the Window object fits into the Excel object model | Excel Programming | |||
Movement | Excel Programming |