lhernandez
Active Member
- Joined
- May 22, 2006
- Messages
- 282
Ok I have a little problem setting the private sub up. I have a check box on my worksheet1 and when it is true I would like to develop a description on sheet2 in millimeters. When it is false I would like to develop a description in inches on sheet2.
Here is the code I have so far:
but this does not work. can someone please lead me in the right direction.
Here is the code I have so far:
Code:
Private Sub UnitRate_Change(ByVal Target As Range)
Dim i As Long
i=2
While Trim(sheet2.Cells(i, 1).Value) <> ""
If Trim(sheet1.Cells(15, 3).Value) = True Then
Trim(sheet2.Cells(i, 2).Value) = Trim(sheet2.Cells(i, 7) & " " & sheet2.Cells(i, 5) & " " & sheet2.Cells(i, 4))
Else
Trim(sheet2.Cells(i, 2).Value) = Trim(sheet2.Cells(i, 7) & " " & sheet2.Cells(i, 5) & " " & sheet2.Cells(i, 3))
End If
i = i + 1
Wend
End Sub
Private Sub UnitRate_SelectionChange(ByVal Target As Range)
End Sub