开个玩笑,这个也算对吧?
Private Sub CommandButton1_Click() Const result As String = "13D58B17ACCC19DE621A72EA2EF4343305EB3331EA3467D437A0F4395F033A70EA3E8533434E5D50F19D53067D53B18D54CE3354E0FC54E83B57898B57963458F81D58FAC45DE14C627395667A16672BC467CC1567D0A67443D6779C147973057A1A177C2A747E218D83B39585DE86878795885E5E98BE1598D41F9D854EA8785EAA60CFAA70CEAF050F" Dim num As Byte, i As Byte, temp As String Randomize num = Int(Rnd * 92 + 1) temp = Oct("&H" & Mid(result, (46 - Abs(num - 46)) * 6 - 5, 6)) + 11111111 If num > 46 Then temp = StrReverse(temp) MsgBox "发现了92个解,现在显示第" & num & "个!" Range("b4:i11").Interior.ColorIndex = 6 For i = 1 To 8 Cells(i + 3, Val(Mid(temp, i, 1) + 1)).Interior.ColorIndex = 7 + i Next End Sub |