![]() |
|
#1
|
|||
|
|||
![]() I have a form, this is using a table not a user form. I want to do a saveas using details recording in form content control fields to make up the file name. I have date, number and name that I want to add to the end of a filename to make it unique each time it is saved, but still recognisable when being looked for. I have tried this: ActiveDocument.SaveAs FileName = "M:\Care Plan System\" & ActiveDocument.Bookmarks("ReviewDate") & "fileformat:=wdformatxmltemplatemacroenabled" but it doesn't work giving error message run-time error 5941 the requested member of the collection does not exist. Any help greatly received. |
#2
|
||||
|
||||
![]()
Hi jillpass,
You have a coding error: ActiveDocument.SaveAs FileName = "M:\Care Plan System\" & ActiveDocument.Bookmarks("ReviewDate"), FileFormat:=wdFormatXMLTemplateMacroEnabled
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to toggle the contents that are displayed in a Word document? | sclind | Word | 1 | 02-24-2012 04:56 PM |
Table of Contents does not update, when document is opened on other computer | jaybo | Word | 1 | 01-25-2011 04:56 PM |
Update Document Template when Saving the Document File | bjbercaw | Word | 3 | 11-16-2010 02:03 PM |
Master Document With Table of Contents | iyoung | Word | 1 | 10-08-2010 04:06 PM |
Copy the contents of a dcoument and paste it several times in a new document | Gerjanst | Word VBA | 0 | 06-30-2010 12:51 PM |