Diving_Dan
Board Regular
- Joined
- Oct 20, 2019
- Messages
- 161
Hi all,
Having some problems trying to use .find to activate a cell. I have a worksheet called orders and in Column A I'm using the following function to pull unique order numbers from the table as most are duplicated.
I've got a userform that pulls in the order numbers ok from this column using named range "Unique_Orders" into a combobox.
What I want to happen is for when I change the order number on the form for the cell on the Orders worksheet to be activated when I select the order number from a combobox. I tried using the following code but I get run time error 91.
Any help on with this will be greatly appreciated.
Dan
Having some problems trying to use .find to activate a cell. I have a worksheet called orders and in Column A I'm using the following function to pull unique order numbers from the table as most are duplicated.
Excel Formula:
=UNIQUE(Table1[Order Number])
What I want to happen is for when I change the order number on the form for the cell on the Orders worksheet to be activated when I select the order number from a combobox. I tried using the following code but I get run time error 91.
VBA Code:
Private Sub cboOrderNumber_Change()
Cells.Find(What:=cboOrderNumber.Value).Activate
End Sub
Any help on with this will be greatly appreciated.
Dan