Thursday, November 03, 2005

Weekly VBA Warmup!

Are you ready for the challenge? Conquering these ones will help us to create a simple guessing game next week! Don't forget to use a reference to find the functions you need (such as the MSDN function reference)
  1. Create a new Sub called Roundoff that will ask the user for a number, then display the corresponding whole number (the Integer part). For eg., if the user types in 54.342, it will display in return: 54.
  2. Create a new Sub called RandomNumber that will display a random number between 0 and 100 each time you run it.

0 Comments:

Post a Comment

<< Home