Forum Discussion
ChristineB
Sep 03, 2023Copper Contributor
Can Word automatically suggest/prompt document property 'Title' when saving the document?
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 i...
- Sep 04, 2023
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:
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.
ChristineB
Sep 04, 2023Copper Contributor
Thanks Doug, I will give that some thought.
I do however not wish to display the FileSaveAs dialog as part of the AutoNew macro, I want the SaveAs dialog to be prepopulated with the document property Title as file name when the user decides to save the document the first time.
Maybe I'll have to have a look at EventHandling and OnSave...
I do however not wish to display the FileSaveAs dialog as part of the AutoNew macro, I want the SaveAs dialog to be prepopulated with the document property Title as file name when the user decides to save the document the first time.
Maybe I'll have to have a look at EventHandling and OnSave...
- Sep 04, 2023
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:
- ChristineBSep 06, 2023Copper ContributorDoug_Robbins_Word_MVP
It works!! Thank you so much for pointing me in the right direction!
Only little hitch is that it only works when using Ctrl+s or clicking in the Save icon, not when using the Word dropdown menu File, Save…, then there is no file name suggested at all – do you know why?
Can that saving method be pre-populated with the title too? Or is that out of reach for Word/VBA?- Sep 06, 2023
ChristineB In my experimentation, it works when using File>Save, but not if you use File>Save As.