View Single Post
 
Old 08-24-2017, 08:44 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

As the bookmark is from a form field, the error relates to the fact that the field construction is toggled. It would be preferable to leave the field locked and use

Code:
ActiveDocument.SaveAs FileName:=ActiveDocument.FormFields("ActName").Result
Personally I would give thought to changing the form fields to content controls as processing such a form is much faster with content controls, especially in Word 2010. You can convert them with http://www.gmayor.com/ExtractDataFromForms.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote