I have some code that sets rsp as a string and equal to the month and year selected by the user from a userform in the format of "Oct-10" or "Feb-11." My code is working great, but when I set a cell on the worksheet equal to rsp it puts it in the format "11-Oct" instead of "Oct-11." Is there anyway I can easily fix this to make it go in the correct format? Here is my code (shortened to show the relevant portions
CellRow is defined as a long and was given a value earlier. Right now, it is setting the correct cell equal to the correct date, it is just in the incorrect format. Any help would be greatly appreciated.
Thanks!
Hank
Code:
Dim rsp As String
rsp = Me.MonthBox.Value & "-" & Right(Me.YearBox.Value, 2)
ActiveSheet.Range("F" & CellRow).Value = rsp
CellRow is defined as a long and was given a value earlier. Right now, it is setting the correct cell equal to the correct date, it is just in the incorrect format. Any help would be greatly appreciated.
Thanks!
Hank