The forum software is new.... did you use the "Upload image" button at the bottom of the message window to post your picture?why I do not see the MrExcelHtml shot I posted ? Can anybody help please, also noticed that all my previous threads has disappeared example shots
Thank you Rick I will try it nowThe forum software is new.... did you use the "Upload image" button at the bottom of the message window to post your picture?
Sub Random1X2()
Dim R As Long, RndNum As Long
Randomize
For R = 6 To 19
RndNum = 3 * Rnd + 1
Cells(R, "B").Offset(, RndNum) = Mid("1X2", RndNum, 1)
Next
End Sub
Sub f1x2()
Dim r As Range, c As Range, n As Long
Set r = Range("B6:B19")
r.Offset(, 1).Resize(r.Rows.Count, 3).ClearContents
Randomize
For Each c In r
n = Int(3 * Rnd + 1)
c.Offset(, n) = Choose(n, "1", "x", "2")
Next
End Sub
Hi Rick, thank you for the code it is generating but there are missing some rows it is creating every time different numbers of row 8, 10, 11 an so it must generate 14 please can you take a look
Kind Regards
Kishan
Sub Random1X2()
Dim R As Long, RndNum As Long
Randomize
Range("C6:E19").Clear
For R = 6 To 19
RndNum = Int(3 * Rnd + 1)
Cells(R, "B").Offset(, RndNum) = Mid("1X2", RndNum, 1)
Next
End Sub