RoyLiam
08-30-2006, 07:34 PM
Hi there
I am creating a userform to input standard information into a document which needs to be created fairly regularly and saved.
What I would like to do is in a textbox prepopulate it with the current date and user initials leaving it blank for the user to fill in the rest (eg "06-08-29-lp-testdoc-m01" where lp are the user initials and the balance of the text is completed by the user in the textbox).
When the OK button is clicked after having filled in the whole form, the 'Save as' dialogue box would come up with the file name in as the default so that the user can easily save the document. If the directory path could also be established within the form that would be helpfull
I can see that the code 'Format(Now, "yy-mm-dd") would give part of the filename but i cannot see how to get the equilavent of "USERINITIALS \* Lower " fieldcode to extract the users initials from the user settings.
Additionally i cannot see how to bring up the 'save as' screen in a way that works; i have been able to get it to display using 'show' but it wouldn't save when this was clicked
Any comments most appreciated.
Regards
RoyLiam
I am creating a userform to input standard information into a document which needs to be created fairly regularly and saved.
What I would like to do is in a textbox prepopulate it with the current date and user initials leaving it blank for the user to fill in the rest (eg "06-08-29-lp-testdoc-m01" where lp are the user initials and the balance of the text is completed by the user in the textbox).
When the OK button is clicked after having filled in the whole form, the 'Save as' dialogue box would come up with the file name in as the default so that the user can easily save the document. If the directory path could also be established within the form that would be helpfull
I can see that the code 'Format(Now, "yy-mm-dd") would give part of the filename but i cannot see how to get the equilavent of "USERINITIALS \* Lower " fieldcode to extract the users initials from the user settings.
Additionally i cannot see how to bring up the 'save as' screen in a way that works; i have been able to get it to display using 'show' but it wouldn't save when this was clicked
Any comments most appreciated.
Regards
RoyLiam