Getting user input through vba
问题 I have a set of dates in Col K in sheet "Latency". I need the user to input the current date and then the code should find all the dates before the entered date, copy the entire row and paste it in a different sheet named "Previous". I'm stuck with how to get input from user and integrate it in code and execute the above. Any suggestions are welcome. 回答1: You could use an input box to get the user to input a date, check that what is entered is actually a date, and then run the code you want: