Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-26-2012, 06:47 AM
jillapass jillapass is offline Saving document using Form Contents Windows 7 32bit Saving document using Form Contents Office 2007
Novice
Saving document using Form Contents
 
Join Date: Dec 2011
Posts: 26
jillapass is on a distinguished road
Default Saving document using Form Contents


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.
Reply With Quote
  #2  
Old 03-28-2012, 12:03 AM
macropod's Avatar
macropod macropod is offline Saving document using Form Contents Windows 7 64bit Saving document using Form Contents Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft