Hello There,
The purpose of the below exercise is how to reference a table and its columns in a Userform:
I have a table defined with columns Name, Age, Amount1, Amount2, Amount3. A button is created to bring up the userform. This form contains a textbox and it needs to be filled with a value 'X'.
The requirement:
1. For a single row, if the columns Name & Age are filled and the User clicks on the button , the form should be displayed and the textbox gets a value 'X', else it should give a friendly message 'Textbox filled only when Name and Age is filled for the given row'
2. If on the table the user selects multiple rows or columns in the table, and then presses the button, it should give the above friendly message.
I have attached the file for your your reference.
Could you please advise, how this can be achieved using VBA code written in modules?
Looking forward to hearing from you.
Regards
Don
The purpose of the below exercise is how to reference a table and its columns in a Userform:
I have a table defined with columns Name, Age, Amount1, Amount2, Amount3. A button is created to bring up the userform. This form contains a textbox and it needs to be filled with a value 'X'.
The requirement:
1. For a single row, if the columns Name & Age are filled and the User clicks on the button , the form should be displayed and the textbox gets a value 'X', else it should give a friendly message 'Textbox filled only when Name and Age is filled for the given row'
2. If on the table the user selects multiple rows or columns in the table, and then presses the button, it should give the above friendly message.
I have attached the file for your your reference.
Could you please advise, how this can be achieved using VBA code written in modules?
Looking forward to hearing from you.
Regards
Don