#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default Animation

Hi,

Is there a way so that you have a picture in the workbook

and when you press a button that picture moves across the screen and once it
hits the end it goes back to where it started(like move it small distances
fast so it looks like an animation?)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Animation

Hi,

Here is one example
http://newtonexcelbach.wordpress.com...ng-in-excel-2/

Cheers
Andy
--

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

Is there a way so that you have a picture in the workbook

and when you press a button that picture moves across the screen and once
it
hits the end it goes back to where it started(like move it small distances
fast so it looks like an animation?)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default Animation

hey do you know any simplier examples that thing is awesome but wooo its so
confusing :(

"Andy Pope" wrote:

Hi,

Here is one example
http://newtonexcelbach.wordpress.com...ng-in-excel-2/

Cheers
Andy
--

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

Is there a way so that you have a picture in the workbook

and when you press a button that picture moves across the screen and once
it
hits the end it goes back to where it started(like move it small distances
fast so it looks like an animation?)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default Animation

Doug,

This is simple but it works

You would need to add a button and have it trigger this code

Sub MovePic()
' Object name is AutoShape 213 Change if needed
'
ActiveSheet.Shapes("AutoShape 213").Select
leftp = Selection.ShapeRange.Left
topp = Selection.ShapeRange.Top
For a = 1 To 15 ' change 15 to move further
With ActiveSheet.Shapes("AutoShape 213")
.IncrementLeft 30 'Change this to jump further
Application.Wait (Now + TimeValue("0:00:01"))
End With
Next a
' Resets position
Selection.ShapeRange.Left = leftp
Selection.ShapeRange.Top = topp

End Sub





"Doug" wrote:

hey do you know any simplier examples that thing is awesome but wooo its so
confusing :(

"Andy Pope" wrote:

Hi,

Here is one example
http://newtonexcelbach.wordpress.com...ng-in-excel-2/

Cheers
Andy
--

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

Is there a way so that you have a picture in the workbook

and when you press a button that picture moves across the screen and once
it
hits the end it goes back to where it started(like move it small distances
fast so it looks like an animation?)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 460
Default Animation

That's perfect :D

Thanks!

"Paul C" wrote:

Doug,

This is simple but it works

You would need to add a button and have it trigger this code

Sub MovePic()
' Object name is AutoShape 213 Change if needed
'
ActiveSheet.Shapes("AutoShape 213").Select
leftp = Selection.ShapeRange.Left
topp = Selection.ShapeRange.Top
For a = 1 To 15 ' change 15 to move further
With ActiveSheet.Shapes("AutoShape 213")
.IncrementLeft 30 'Change this to jump further
Application.Wait (Now + TimeValue("0:00:01"))
End With
Next a
' Resets position
Selection.ShapeRange.Left = leftp
Selection.ShapeRange.Top = topp

End Sub





"Doug" wrote:

hey do you know any simplier examples that thing is awesome but wooo its so
confusing :(

"Andy Pope" wrote:

Hi,

Here is one example
http://newtonexcelbach.wordpress.com...ng-in-excel-2/

Cheers
Andy
--

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

Is there a way so that you have a picture in the workbook

and when you press a button that picture moves across the screen and once
it
hits the end it goes back to where it started(like move it small distances
fast so it looks like an animation?)





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
Animation Weave New Users to Excel 1 December 7th 05 02:21 PM
Animation Andy pop Excel Programming 2 November 16th 04 02:41 PM
Animation No Name Excel Programming 2 July 15th 04 11:14 PM
Animation Adam Klee Excel Programming 3 August 12th 03 01:15 PM
animation Adam Klee Excel Programming 0 August 12th 03 08:04 AM


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