Private Sub cmdOpen_Click()
' OK button
' Fill out the selected details in the Form
'------------------------------------------
Dim wsFrm As Worksheet
Dim wsLog As Worksheet
Dim rFnd As Range, rOut As Range
Dim vArr As Variant
Set wsLog = Sheets(Me.SheetNm.Caption)
Set wsFrm = Sheets("IRForm")
ClearData wsFrm
Set rFnd = wsLog.Cells(Me.StartRow, "B")
Set rOut = wsFrm.Cells(22, "B")
With rFnd
wsFrm.Range("G3") = .Offset(0, 0).Value
wsFrm.Range("G4") = .Offset(0, 1).Value
wsFrm.Range("G7") = .Offset(0, 2).Value
wsFrm.Range("C15") = .Offset(0, 3).Value
wsFrm.Range("C16") = .Offset(0, 4).Value
wsFrm.Range("E16") = .Offset(0, 5).Value
wsFrm.Range("B18") = .Offset(0, 6).Value
wsFrm.Range("C18") = .Offset(0, 7).Value
wsFrm.Range("D18") = .Offset(0, 8).Value
wsFrm.Range("E18") = .Offset(0, 9).Value
wsFrm.Range("F18") = .Offset(0, 10).Value
wsFrm.Range("C30") = .Offset(0, 34).Value
wsFrm.Range("C31") = .Offset(0, 35).Value
wsFrm.Range("C33") = .Offset(0, 36).Value
'option and checkbox
wsFrm.Range("I22") = .Offset(0, 11).Value
wsFrm.Range("I24") = .Offset(0, 12).Value
wsFrm.Range("I25") = .Offset(0, 13).Value
wsFrm.Range("I26") = .Offset(0, 14).Value
wsFrm.Range("I29") = .Offset(0, 15).Value
wsFrm.Range("I30") = .Offset(0, 16).Value
wsFrm.Range("L24") = .Offset(0, 17).Value
wsFrm.Range("L25") = .Offset(0, 18).Value
wsFrm.Range("L26") = .Offset(0, 19).Value
wsFrm.Range("L29") = .Offset(0, 20).Value
wsFrm.Range("L30") = .Offset(0, 21).Value
wsFrm.Range("O24") = .Offset(0, 22).Value
wsFrm.Range("O25") = .Offset(0, 23).Value
wsFrm.Range("O26") = .Offset(0, 24).Value
wsFrm.Range("O27") = .Offset(0, 25).Value
wsFrm.Range("O28") = .Offset(0, 26).Value
wsFrm.Range("O29") = .Offset(0, 27).Value
wsFrm.Range("O30") = .Offset(0, 28).Value
wsFrm.Range("Q24") = .Offset(0, 29).Value
wsFrm.Range("Q25") = .Offset(0, 30).Value
wsFrm.Range("Q26") = .Offset(0, 31).Value
wsFrm.Range("Q27") = .Offset(0, 32).Value
wsFrm.Range("Q28") = .Offset(0, 33).Value
End With
' check if earlier revision, if so lock sheet
If cmbRevNo.ListIndex <> cmbRevNo.ListCount - 1 Then
ProtectForm wsFrm, True
Else
UnProtectForm wsFrm, False
End If
Unload Me