Microsoft Office Tutorials and References
In Depth Information
Animating a Label
Animating a Label
The final example in this chapter demonstrates how to animate a Label control. The UserForm
shown in Figure 14-21 is an interactive random number generator.
Two TextBox controls hold the lower and upper values for the random number. A Label
control initially displays four question marks, but the text is animated to show random numbers
when the user clicks the Start button. The Start button changes to a Stop button, and clicking it
again stops the animation and displays the random number. Figure 14-22 shows the dialog box
displaying a random number between 1 and 10,000.
Figure 14-21: Generating a random number.
Figure 14-22: A random number has been chosen.
Search JabSto ::

Custom Search