Hi,
I'm having problems with date format in userform text boxes. I fill in the date in the text box and then when I ok it the date is stored in cell on the worksheet which is formatted to date DD/MM/YYYY. when I reopen the user form the date then repopulated back into the same text box but sometimes the format changes.
For example - if I enter 15/09/2017 in the userform, it appears this way in the cell and also in the text box when I reload it. If I enter 01/09/2017 in the userform it appears in the cell as 09/01/2017 so it looks like the format has changed.
The control panel has the date settings as UK and the date format is set in the cell so i think I have to change the formatting in the textbox but I'm not sure how to do this and if it should be when I initialize the userform, when I run th subs based on the userform or both.
there is more than 1 textbox in the userform that needs to do this but not all of them.
example of the code use on intializing is, PCard1 is the textbox:
Any help would be greatly appreciated
Bookmarks