,
Function lab_O(noofrows As Integer)
Dim a As Integer
For a = 1 To noofrows Step 1
If a Mod 2 <> 0 Then
ActiveCell.Offset(1, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "'"
ActiveCell.Offset(1, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "O"
ActiveCell.Offset(0, -2).Range("A1").Select
Else
ActiveCell.Offset(1, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "'/"
ActiveCell.Offset(1, -1).Range("A1").Select
ActiveCell.FormulaR1C1 = "O"
End If
Next a
End Function
Private Sub row()
Dim noofrows As Integer
noofrows = Sheet9.Range("b3").Value
tubesperrow = Sheet9.Range("b2").Value
For a = 1 To tubesperrow Step 1
ActiveCell.FormulaR1C1 = "O"
Call lab_O(noofrows)
ActiveCell.Offset(-noofrows * 2, 3).Select
Next a
End Sub
'