erik.van.geit
MrExcel MVP
- Joined
- Feb 1, 2003
- Messages
- 17,832
Hi, guys, gals and gurus!
Some weeks ago my son decided to try to make a cartoon-movie.
To view his little movie I created this.
(delay not working properly, because loading of pictures takes some time, I think)
Did you ever use Excel for "non-excel-purposes" ?
just curious !!
Erik
Some weeks ago my son decided to try to make a cartoon-movie.
To view his little movie I created this.
(delay not working properly, because loading of pictures takes some time, I think)
Code:
Option Explicit
Sub filmpje()
Dim pic1 As Object, pic2 As Object
Dim nr As Integer
Dim x As Integer
Dim starttime As Double
Const map = "C:\WINDOWS\Desktop\filmpje\"
Const FirstPicNr = 1
Const LastPicNr = 500
Const delay = 1 / 60 / 60 / 24 / 10
Application.DisplayFullScreen = True
Range("A1").Select
Set pic1 = ActiveSheet.Pictures.Insert(map & FirstPicNr & ".jpg")
ActiveWindow.Zoom = 120
For nr = FirstPicNr To LastPicNr Step 3
Set pic2 = pic1
Set pic1 = ActiveSheet.Pictures.Insert(map & nr & ".jpg")
starttime = Timer
Do
Loop While Timer - starttime < delay
pic2.Delete
Next nr
pic1.Delete
Application.DisplayFullScreen = False
End Sub
Did you ever use Excel for "non-excel-purposes" ?
just curious !!
Erik