RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
I'm trying to replace an Input box which requires input of a Monday (19/11/2018) or (26/11/2018) or (12/11/2018) for instance, any Monday, but only monday.
I want this to go on a Userform but I've never used them before.
The form needs to have a manual box for inputs where a user can input a monday of any point in the past by manually writing it in (which is the way it is now) in addition to five buttons which have dynamically updating labels (these buttons will have the Monday displayed as the week day like this (-2 Weeks | -1 Weeks | Current Week | +1 Weeks | +2 Weeks) which allow the user to press the button and have that date input.
Finally, I have a bit of VBA code here which converts a date like (12/11/2018) into its Excel Timestamp code, this is below:
I've got command buttons in but these will just open a macro instead of input a value when clicked. I have a text-box but I don't know if this works in the same way as an Input box, I'm totally out of my depth here
I want this to go on a Userform but I've never used them before.
The form needs to have a manual box for inputs where a user can input a monday of any point in the past by manually writing it in (which is the way it is now) in addition to five buttons which have dynamically updating labels (these buttons will have the Monday displayed as the week day like this (-2 Weeks | -1 Weeks | Current Week | +1 Weeks | +2 Weeks) which allow the user to press the button and have that date input.
Finally, I have a bit of VBA code here which converts a date like (12/11/2018) into its Excel Timestamp code, this is below:
Code:
wcd = Int(CDbl(DateValue(InputBox("Enter Date in format 'DD/MM/YYYY'"))))
I've got command buttons in but these will just open a macro instead of input a value when clicked. I have a text-box but I don't know if this works in the same way as an Input box, I'm totally out of my depth here