Hi all,
I need help with a complicated macro for input data in a list. Maybe is not so complicated, but first time I’m doing this type of macros, and I’m stuck in place.
Currently I have list in which the data are inputted directly. Instead inputting the data this way, I need when the button “Fill new data“ is pressed, template to appear in which the below described data will be filled.
After all data is filled, with pressing of the button “Submit data”, the data from the template to be populated in the first free row in the file.
In case some data is not filled, a popup box to appear asking the given data to be filled.
The required data are:
Product code – Is selected in cell B3 (from list “Product_code”). After pressing the button “Fill new data”, the content of cell B3 is copied in the selected cell in column A.
Input code – This value is the next available number of the product which is selected in cell B3 (the formula is “COUNTIFS (A9:A24, B3) +1”). After pressing the button “Fill new data”, the content of cell C3 is copied in the selected cell in column B.
Data #1 – This value is coming from preretirement list (the values are Yes and No)
Data #2 – This value is coming from preretirement list from sheet “Pickup_list “(the values are Yes and No)
Data #3 – This value is coming from preretirement list from sheet “Pickup_list “
Date from – start date, with preretirement format (dd mmm yyyy)
Date to – start date, with preretirement format (dd mmm yyyy)
Comment – free text filled by the person who is populating the data
The person who is inputting the data should fill all cells in the form except the “Input code” cell. This should be automatic calculation.
In the attached file is the draft file I’ve prepared.
Thank you in advance for your help.
Igor
Macro test file.xlsb
Bookmarks