LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default minipops_quiz logoquiz - cheats

Two workbooks (minipops_quiz.xls and LOGOQUIZ.xls) reached this office this
afternoon and occupied almost everyone's attention until I came up with the
following:

To show all correct answers, paste the following code into the respective
workbook's Sheet1 class. What to do next is left as an exercise for the
reader.

For minipops_quiz.xls
---------------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim nRow As Long, nCol As Long
For nRow = 6 To 82 Step 4
For nCol = 2 To 6
Worksheets("minipops").Cells(nRow, nCol) = _
Worksheets("answers").Cells(nRow, nCol)
Next nCol
Next nRow
End Sub

For LOGOQUIZ.xls
----------------
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim nSheet As Long, nRow As Long, nCol As Long, i As Long
i = 0
For nSheet = 3 To 7
For nRow = 8 To 26 Step 9
For nCol = 2 To 16 Step 2
i = i + 1
Worksheets(nSheet).Cells(nRow, nCol) = _
Worksheets("answers").Cells(i, 2)
Next nCol
Next nRow
Next nSheet
End Sub

--
Michael Bednarek, Brisbane, Australia
http://mcmbednarek.tripod.com/ "POST NO BILLS"
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"