Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Object Movement

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   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Object Movement

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Object Movement

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Object Movement


Hi

Thanks very much, works a treat (The Muts Nuts)

Kev



*** Sent via Developersdex http://www.developersdex.com ***
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
movement Ross Excel Discussion (Misc queries) 6 September 25th 05 01:48 PM
object movement Frank Hoke Excel Programming 3 August 26th 05 06:52 PM
Controlling the movement of a drawing object Andrew B[_4_] Excel Programming 1 May 18th 05 01:02 PM
Confusion about how the Window object fits into the Excel object model Josh Sale Excel Programming 11 April 15th 05 06:08 PM
Movement No Name Excel Programming 2 July 26th 04 05:35 PM


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"