Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Video Poker on a UserForm
And finally, proof that Excel doesn't have to be boring. Figure 15-31 shows a UserForm set up as a casino-style video poker game. The game features
• A choice between two games: Joker's Wild and Jacks Or Better
• A chart that shows your winning (or losing) history
• The ability to change the payoffs
• Help (displayed on a worksheet)
• An emergency button that quickly hides the UserForm
All that's missing is the casino noise.
This workbook, named video poker.xlsm, is available on the companion CD-ROM.
FIGURE 15-31: A feature-packed video poker game.
As you might expect, the code is much too lengthy to list here, but if you examine the workbook, you'll find lots of useful UserForm tips — including a class module example.