Sep 03 2023 08:52 AM
In Word 365, I have created a Letter template with an AutoNew macro and a userform that prompts the user to fill in various details of the letter (title/heading, recipient, case no., etc.) and this info is then put into the right places in the document AND some of that info is also stored in the document properties (general as well as custom). So far so good, all works perfectly.
On save, the suggested file name is as usual the first few words of the document, in this case the recipient of the letter. But since we already have registered the title in the document properties, it would be so neat if Word could suggest that instead – is that possible? With or without VBA code?
Suggestions are very much appreciated
Sep 04 2023 12:18 AM
@ChristineB You should be able to make use of part of the code that creates the Document Property and with additional code, display the File SaveAs dialog, prepopulated with that information, or just have a command that simply saves the document with it.
Sep 04 2023 05:33 AM
Sep 04 2023 03:27 PM
Solution
See the article "How to set the default suggested filename to be displayed by the Save As dialog the first time a user saves a new document” at:
Sep 06 2023 05:37 AM
Sep 06 2023 05:46 AM
@ChristineB In my experimentation, it works when using File>Save, but not if you use File>Save As.
Sep 06 2023 06:18 AM
This is what I get when using menu File, Save to save (the grey text 'Angiv filnavnet her' means 'Write file name here')
And when I use Ctrl+s; the document title is correctly suggested as file name (sorry about the Danish user interface):
Maybe something in my Word settings??
Sep 06 2023 06:22 AM
Jun 28 2024 05:43 PM
Jun 28 2024 09:11 PM
Sep 04 2023 03:27 PM
Solution
See the article "How to set the default suggested filename to be displayed by the Save As dialog the first time a user saves a new document” at: