ElectricSkywalker
Board Regular
- Joined
- May 27, 2002
- Messages
- 112
Hi all,
I have created a User Form for someone to enter data into.
One of my Input Fields is a list drop down box,( which I have called "lsDepartment")which will select the Department the person is in.
I then want a box below, that automatically does a vlookup, and inputs the Manager name for the Department. (I don't want them to have to input this - I just want it to display the Managers Name)
On another sheet, I have a Table which lists the Departments in Column 1 and Managers in Column 2.
I was attempting to use a a text box, with the following code behind it....but it doesn't seem to work. Can anyone offer any suggestions please:
ActiveCell.Formula "=vlookup(lsDepartment, Sheet1!D2:E70,2,False)"
Thanks,
Greg
I have created a User Form for someone to enter data into.
One of my Input Fields is a list drop down box,( which I have called "lsDepartment")which will select the Department the person is in.
I then want a box below, that automatically does a vlookup, and inputs the Manager name for the Department. (I don't want them to have to input this - I just want it to display the Managers Name)
On another sheet, I have a Table which lists the Departments in Column 1 and Managers in Column 2.
I was attempting to use a a text box, with the following code behind it....but it doesn't seem to work. Can anyone offer any suggestions please:
ActiveCell.Formula "=vlookup(lsDepartment, Sheet1!D2:E70,2,False)"
Thanks,
Greg