markdoughty
Board Regular
- Joined
- Nov 4, 2010
- Messages
- 226
Im trying to get the code below to select a sheet, find a value <> to the value of a combobox (cbosalesordernumber1), offsett by 7 and insert a "Y".
I had this working at one point but it has now stopped inserting the "Y"
Any help appreciated.
I had this working at one point but it has now stopped inserting the "Y"
Any help appreciated.
HTML:
Private Sub closeorder_Click()
If MsgBox("Closing This Order Will Mean No Further Additions / Alerations Will Be Able.", vbOKCancel, _"Close Order") = vbCancel ThenCall UserForm_Initialize
Else: GoTo closeorder:
closeorder:ActiveWorkbook.Sheets("Sales Entry").Activate
Range("a1").Select
Do If ActiveCell.Value < cbosalesordernumber1 = False Then
ActiveCell.Offset(1, 0).Select
End If
Loop Until (ActiveCell) <> cbosalesordernumber = True
With ActiveCell.Select
ActiveCell.Offset(0, 7) = "Y"
If MsgBox("Returning To Sales Counter Menu", vbOKOnly, "Return To Sales Counter Menu") = vbOK Then
Unload Me
SimpleSheet.salescountermenu.Show
End If
End With
End If
End Sub