thatrenowned
MIS
I'm creating a form in Word 2002 and part of the form uses the calendar. My bookmarks in Word are working correctly and when you press the submit button, all the data is entered.
However, after looking up on the internet \ Word helpfiles and trying several attempts at the date format, it still enters it as dd/mm/yy. I'd really only like to have the full month and year displayed e.g. 'October 2005'. Whats the correct code for changing the date format, and at what stage would this have to be done?
The code which gets the date is:
and to enter it to the form:
I've deliberately missed out all the code I've tried for formatting the date because there was so much!
The other thing is I'm using 'InsertBefore' but really I'd like it to replace whatever is currently in the book mark - what code would I use to do this?
Thanks
However, after looking up on the internet \ Word helpfiles and trying several attempts at the date format, it still enters it as dd/mm/yy. I'd really only like to have the full month and year displayed e.g. 'October 2005'. Whats the correct code for changing the date format, and at what stage would this have to be done?
The code which gets the date is:
Code:
calendarDate = ocxCalendar.Value
and to enter it to the form:
Code:
ActiveDocument.Bookmarks("date").Range.InsertBefore calendarDate
I've deliberately missed out all the code I've tried for formatting the date because there was so much!
The other thing is I'm using 'InsertBefore' but really I'd like it to replace whatever is currently in the book mark - what code would I use to do this?
Thanks