Dear All Hi,
As I am new to coding and after searching the internet for the solution and not finding it I am posting this here as I have been helped here before.
I have a sheet of stock Outward, with the headers as: Column D=STM1; Column E=STM2 and on.
In A column I have the stock items Range A2:A34.
sensor; Plate; Battery; etc.
I want to create a userform on another dashboard sheet where anyone who uses any item from the stock will enter in the userform and the stock Qty used will be entered in the stock outward sheet (without he actually using the sheet to enter.
My concept is that in the first combobox there should be a auto populated list of Column headers STM1;STM2;etc. (how can I get this header in the combobox list).
Second combobox list will contain item names like sensor; Battery; etc.
Third textbox on the userform will be for qty no he has used.
Now when he submits the form the qty entered should be entered in the cell destination according to the above 2 comboboxes selection. that is if he selectes STM2 in first combobox and sensor in second combobox and writes 2 in the text box of qty the enter of the number 2 should be done in cell "E2" If E column header is STM2 and A2 has sensor in the item column.
Appreciate if anyone has any solution to this maybe this will help many as it may be a common requirement.
Thanks in Advance
Jack
As I am new to coding and after searching the internet for the solution and not finding it I am posting this here as I have been helped here before.
I have a sheet of stock Outward, with the headers as: Column D=STM1; Column E=STM2 and on.
In A column I have the stock items Range A2:A34.
sensor; Plate; Battery; etc.
I want to create a userform on another dashboard sheet where anyone who uses any item from the stock will enter in the userform and the stock Qty used will be entered in the stock outward sheet (without he actually using the sheet to enter.
My concept is that in the first combobox there should be a auto populated list of Column headers STM1;STM2;etc. (how can I get this header in the combobox list).
Second combobox list will contain item names like sensor; Battery; etc.
Third textbox on the userform will be for qty no he has used.
Now when he submits the form the qty entered should be entered in the cell destination according to the above 2 comboboxes selection. that is if he selectes STM2 in first combobox and sensor in second combobox and writes 2 in the text box of qty the enter of the number 2 should be done in cell "E2" If E column header is STM2 and A2 has sensor in the item column.
Appreciate if anyone has any solution to this maybe this will help many as it may be a common requirement.
Thanks in Advance
Jack