Source CODE
Dim wrd As New Word.Application ''Create Word as COM [ web1 ] [ web2 ] [ web3 ] [ web4 ] [ vb ]
Dim Pt As String, St As String ''Declare variables
Private Sub Picture2_Click() ''Standard generation of game form
St = App.Path ''Path to generator program
St = St + "\oflameron-form2.xml" ''Path to XML template
wrd.Visible = True ''Open Word
Set doc = wrd.Documents.Add(St) ''Add Word doc
Dim k, g
For i = 0 To 15
For j = 0 To 59
Randomize ''Use random number generator
k = Int((20 * Rnd) + 1)
g = g + 1
frmOflameron.Caption = "Complete " + CStr(g) + " cells from 960" [ vb guide ] [ Free tutorials ]
If k = 1 Then repltext = "1"
If k = 1 Then FntColor = wdColorBlack ''Symbol color
If k = 1 Then CellColor = wdColorWhite ''Cell background color +1
If k = 2 Then repltext = "-1"
If k = 2 Then FntColor = wdColorBlack ''Symbol color
If k = 2 Then CellColor = wdColorWhite ''Cell background color -1
If k = 3 Then repltext = "5"
If k = 3 Then FntColor = wdColorBlack ''Symbol color
If k = 3 Then CellColor = wdColorWhite ''Cell background color +5
If k = 4 Then repltext = "-5"
If k = 4 Then FntColor = wdColorBlack ''Symbol color
If k = 4 Then CellColor = wdColorWhite ''Cell background color -5