You are on page 1of 10

95.

0335006713867
95.8355712890625
96.6337356567383
99.0048904418945
100.566329956055
104.402931213379
106.659408569336
110
111.793792724609
114.646682739258
115.358978271484
115.358978271484
124.179061889648 120.854438781738
130 130
134.839950561523 131.188888549805
146.163391113281 142.345474243164
150 150
157.654525756836 153.836608886719
168.811111450195
170 165.160049438477
170
179.145568847656 175.820938110352
184.641021728516
184.641021728516
188.206207275391 185.353317260742
190
193.340591430664
195.597076416016
199.433670043945
200.9951171875
203.366271972656
204.164428710938
204.966491699219
Springiness 0.6 0
Speed 4 START CLOCK

Click the 'Start Clock' button to make the clock


active.

The clock will react to the mouse being moved Clockface


across the yellow area 3 190
4 184.64102173
You can adjust the settings for 5 170
Springiness - How quickly the clock reforms after 6 150
the mouse has caused it to move.
7 130
Speed - How fast the date dial rotates. 8 115.3589859
9 110
10 115.3589859
11 130
12 150
1 170
2 184.64100647
The clock and animation is handled by an
xy scatter chart. The vba code simply updates all
the points for date dial, clock face and hands.

The mouse events are trapped using a label


control that is positioned over the chart. The label Second hand
has been made transparent. 150
150
150
150
150
150
150
150

Minute hand
124.01924133
128.34936523
132.67948914
137.00961304
141.3397522
145.6698761

Hour hand
166.38304138
162.28727722
158.19151306
154.09576416
Date dial
150 101.4379 124.1791
170 S 107.8676 114.6467
184.641 A 116.1386 106.6594
190 T 125.8896 100.5663
184.641 U 136.6943 96.63374
170 R 148.0805 95.0335
150 D 159.5507 95.83557
130 A 170.6034 99.00489
115.359 Y 180.7556 104.4029
110 189.5637 111.7938
115.359 196.6426 120.8544
130 2 201.6831 131.1889
3 204.4647 142.3455
204.866 153.8366
202.8694 165.16
N 198.5621 175.8209
O 192.1324 185.3533
190 V 183.8614 193.3406
185 E 174.1104 199.4337
180 M 163.3057 203.3663
175 B 151.9195 204.9665
170 E 140.4494 204.1644
165 R 129.3966 200.9951
160 119.2444 195.5971
155 110.4363 188.2062
2 103.3574 179.1456
0 98.31691 168.8111
0 95.53526 157.6545
135 2 95.13398 146.1634
137.5 97.13061 134.84
140
142.5
145
147.5

138.5285
141.3963
144.2642
147.1321
0

55
47.6313972081441
47.6313972081441
27.5 27.5

6.73555739531044E-15 0

-27.5 -27.5
-47.6313972081441
-47.6313972081441
-55

The clocks are displayed using a xy scatter chart.

There is a line series for each hand and the numbers.

The first clock has a second hand. The second clock has an extra
data series to hold a picture of the clock face

The vba code just updates the sheet which will cause the cells to
update.

The xy positions are done using formula within the cells


55 0 0 70 0 0
0 3 55 0 0 70 0
30 2 47.6314 27.5 6 69.61653 7.316992
60 1 27.5 47.6314 12 68.47033 14.55382
90 12 3.37E-15 55 18 66.57396 21.63119
120 11 -27.5 47.6314 24 63.94818 28.47157
150 10 -47.6314 27.5 30 60.62178 35
180 9 -55 6.74E-15 36 56.63119 41.14497
210 8 -47.6314 -27.5 42 52.02014 46.83914
240 7 -27.5 -47.6314 48 46.83914 52.02014
270 6 -1E-14 -55 54 41.14497 56.63119
300 5 27.5 -47.6314 60 35 60.62178
330 4 47.6314 -27.5 66 28.47157 63.94818
72 21.63119 66.57396
0 0 78 14.55382 68.47033
-114 45 -18.30315 -41.10955 84 7.316992 69.61653
90 4.29E-15 70
0 0 96 -7.316992 69.61653
24 35 31.97409 14.23578 102 -14.55382 68.47033
108 -21.63119 66.57396
0 0 114 -28.47157 63.94818
chart. -65.5 30 12.4408 -27.29884 120 -35 60.62178
126 -41.14497 56.63119
numbers. 132 -46.83914 52.02014
0 138 -52.02014 46.83914
nd clock has an extra START CLOCK 144 -56.63119 41.14497
e
150 -60.62178 35
will cause the cells to 156 -63.94818 28.47157
162 -66.57396 21.63119
168 -68.47033 14.55382
hin the cells 174 -69.61653 7.316992
180 -70 8.57E-15
186 -69.61653 -7.316992
192 -68.47033 -14.55382
198 -66.57396 -21.63119
204 -63.94818 -28.47157
210 -60.62178 -35
216 -56.63119 -41.14497
222 -52.02014 -46.83914
228 -46.83914 -52.02014
234 -41.14497 -56.63119
240 -35 -60.62178
246 -28.47157 -63.94818
252 -21.63119 -66.57396
258 -14.55382 -68.47033
264 -7.316992 -69.61653
270 -1.29E-14 -70
276 7.316992 -69.61653
282 14.55382 -68.47033
288 21.63119 -66.57396
294 28.47157 -63.94818
300 35 -60.62178
306 41.14497 -56.63119
312 46.83914 -52.02014
318 52.02014 -46.83914
324 56.63119 -41.14497
330 60.62178 -35
336 63.94818 -28.47157
342 66.57396 -21.63119
348 68.47033 -14.55382
354 69.61653 -7.316992
360 70 -1.71E-14
3 2
0
START CLOCK

The clock is displayed using a xy scatter chart.

There is a line series for each digit in its lit and unlit state.

The vba code updates the time values

The lines xy positions are done using formula within the cells
1 3 5

235680 -100 1 -100 1 4.1 1 7.1 1


235680 -100 1 -100 1 5.9 1 8.9 1

134567890 -100 1.1 3 1.1 6 1.1 9 1.1


134567890 -100 2.1 3 2.1 6 2.1 9 2.1

12347890 -100 2.4 3 2.4 6 2.4 -100 2.4


12347890 -100 3.4 3 3.4 6 3.4 -100 3.4

2357890 -100 3.5 -100 3.5 5.9 3.5 8.9 3.5


2357890 -100 3.5 -100 3.5 4.1 3.5 7.1 3.5

456890 -100 3.4 -100 3.4 -100 3.4 7 3.4


456890 -100 2.4 -100 2.4 -100 2.4 7 2.4

2680 -100 2.1 -100 2.1 -100 2.1 -100 2.1


2680 -100 1.1 -100 1.1 -100 1.1 -100 1.1

2345689 -100 2.25 -100 2.25 4.1 2.25 7.1 2.25


2345689 -100 2.25 -100 2.25 5.9 2.25 8.9 2.25

6.55 1.7 1.1 1 4.1 1 7.1 1


6.55 2.7 2.9 1 5.9 1 8.9 1
12.55 1.7
12.55 2.7 3 1.1 6 1.1 9 1.1
3 2 6 2 9 2

3 2.5 6 2.5 9 2.5


3 3.4 6 3.4 9 3.4

2.9 3.5 5.9 3.5 8.9 3.5


1.1 3.5 4.1 3.5 7.1 3.5

1 3.4 4 3.4 7 3.4


1 2.5 4 2.5 7 2.5

1 2 4 2 7 2
1 1.1 4 1.1 7 1.1

1.1 2.25 4.1 2.25 7.1 2.25


2.9 2.25 5.9 2.25 8.9 2.25
1 1 7

-100 1 -100 1 -100 1


-100 1 -100 1 -100 1

12 1.1 15 1.1 18 1.1


12 2.1 15 2.1 18 2.1

12 2.4 15 2.4 18 2.4


12 3.4 15 3.4 18 3.4

-100 3.5 -100 3.5 17.9 3.5


-100 3.5 -100 3.5 16.1 3.5

-100 3.4 -100 3.4 -100 3.4


-100 2.4 -100 2.4 -100 2.4

-100 2.1 -100 2.1 -100 2.1


-100 1.1 -100 1.1 -100 1.1

-100 2.25 -100 2.25 -100 2.25


-100 2.25 -100 2.25 -100 2.25

10.1 1 13.1 1 16.1 1


11.9 1 14.9 1 17.9 1

12 1.1 15 1.1 18 1.1


12 2 15 2 18 2

12 2.5 15 2.5 18 2.5


12 3.4 15 3.4 18 3.4

11.9 3.5 14.9 3.5 17.9 3.5


10.1 3.5 13.1 3.5 16.1 3.5

10 3.4 13 3.4 16 3.4


10 2.5 13 2.5 16 2.5

10 2 13 2 16 2
10 1.1 13 1.1 16 1.1

10.1 2.25 13.1 2.25 16.1 2.25


11.9 2.25 14.9 2.25 17.9 2.25

You might also like