michaeltsmith93
Board Regular
- Joined
- Sep 29, 2016
- Messages
- 83
Hi,
I will preface this by saying that I'm new to VBA. I'd like to write some code for a command button that will complete a series of actions and then create a series of dialog boxes with fields that the user can then type in, and then when you close the final dialog box, all of those things will happen. Is this possible? If so, could someone point me toward a post that deals with something similar? I don't want someone to just write it for me, and I'm not sure what search terms to use to find some similar code.
These are the things that I want to incorporate:
1. Find last row of data that contains any text.
2. Copy selection A6:AP6 and paste to row below last row.
3. Dialog box asking for "LastName FirstName" whose value will go in Column A of this row.
4. Dialog box asking for "Study Role" whose value will go in Column B of this row.
5. Dialog box asking for "Matrix Role" whose value will go in Column D of this row.
6. Execute these steps.
I think I can figure out steps 1 and 2 on my own. I just need some guidance regarding steps 3-6. A link to another forum post would be great! I also don't mind if it's a series of dialog boxes or one box with multiple fields to populate.
Thank you!
Michael
I will preface this by saying that I'm new to VBA. I'd like to write some code for a command button that will complete a series of actions and then create a series of dialog boxes with fields that the user can then type in, and then when you close the final dialog box, all of those things will happen. Is this possible? If so, could someone point me toward a post that deals with something similar? I don't want someone to just write it for me, and I'm not sure what search terms to use to find some similar code.
These are the things that I want to incorporate:
1. Find last row of data that contains any text.
2. Copy selection A6:AP6 and paste to row below last row.
3. Dialog box asking for "LastName FirstName" whose value will go in Column A of this row.
4. Dialog box asking for "Study Role" whose value will go in Column B of this row.
5. Dialog box asking for "Matrix Role" whose value will go in Column D of this row.
6. Execute these steps.
I think I can figure out steps 1 and 2 on my own. I just need some guidance regarding steps 3-6. A link to another forum post would be great! I also don't mind if it's a series of dialog boxes or one box with multiple fields to populate.
Thank you!
Michael