ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Morning,
Ive always has a command button so a user form opens & you see text boxes etc.
I’m looking to try the same but on the worksheet & not open a user form.
So as an example.
Cell A1 is a search box.
Cell A2 is the results box
Cells C1:C10 is the range.
Command button to run code.
Can you give me a basic example please of the code.
The range would consist of let’s say animals.
You type Dog in A1 and press command button.
The code looks in the range & returns the cell reference say C6 in the reply box A2
I know it sounds basic but I’ve now idea what it’s called etc to search as I’ve only ever known user forms.
Ive always has a command button so a user form opens & you see text boxes etc.
I’m looking to try the same but on the worksheet & not open a user form.
So as an example.
Cell A1 is a search box.
Cell A2 is the results box
Cells C1:C10 is the range.
Command button to run code.
Can you give me a basic example please of the code.
The range would consist of let’s say animals.
You type Dog in A1 and press command button.
The code looks in the range & returns the cell reference say C6 in the reply box A2
I know it sounds basic but I’ve now idea what it’s called etc to search as I’ve only ever known user forms.