D
D
Diana Stoyka2021-05-20 10:20:31
Visual Basic
Diana Stoyka, 2021-05-20 10:20:31

How to make an image move in a circle using a timer in excel?

I don’t know how to do it, there is a piece of code, but it walks once in a jump (teleports),
but you need to be able to see how it walks.
For example as in the picture
Thanks in advance for your help

Dim inPlus As Double
Dim Sc As Integer, lamax As Integer
lamax = 196
Sc = Timer
inPlus = 1
Do While Timer < Sc + 10
If Image1.Top <= lamax Then
Image1.Top = Image1.Top + inPlus
Else
Exit Do
End If

60a60ca663807531166473.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2021-05-20
@Dianka05

Add a delay to the Svetlofor loop in excel, how to make a delay?
The smoothness of movement can be adjusted by the delay and the step of changing the coordinates

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question