Hi all, I'm trying to work out how concatenate some text and a date together in VBA on a Userform and dispite many google searches just can't seem to work out how to do this in code if indeed it is actually possible?
So the issue:
On my Userform ("Events") I have 3 text boxes : (1) txtEventName. (2) txtsDate (formatted as a date), (3) txtEventCode
What I'm trying to accomplish is once data has been entered in txtEventName and txtsDate then the txtEventCode box is automatically populated to create an Event Code by joining the data together with a seperator "-"
For example if I enter "Summer Fair" in txtEventName and 23/12/2023 in txtsDate then I would like txtEventCode to automatically be populated with "Summer Fair - 23/12/2023"
The event code will eventually be used so it can be searched upon in case any changes to the data for that event need to be changed. I've done this using a formula in the worksheet but just can't work out how to do this in VBA on the userform.
Thanks in advance for any advice or solutions offered.
Paul
So the issue:
On my Userform ("Events") I have 3 text boxes : (1) txtEventName. (2) txtsDate (formatted as a date), (3) txtEventCode
What I'm trying to accomplish is once data has been entered in txtEventName and txtsDate then the txtEventCode box is automatically populated to create an Event Code by joining the data together with a seperator "-"
For example if I enter "Summer Fair" in txtEventName and 23/12/2023 in txtsDate then I would like txtEventCode to automatically be populated with "Summer Fair - 23/12/2023"
The event code will eventually be used so it can be searched upon in case any changes to the data for that event need to be changed. I've done this using a formula in the worksheet but just can't work out how to do this in VBA on the userform.
Thanks in advance for any advice or solutions offered.
Paul