Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-24-2017, 08:44 PM
gmayor's Avatar
gmayor gmayor is offline Saveas by Bookmark Name Windows 10 Saveas by Bookmark Name Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saveas by Bookmark Name SaveAs problem SixSigmaGuy Word VBA 5 05-03-2016 10:49 AM
Find Bookmark, move to bookmark, execute code, repeat raymm3852 Word VBA 10 04-15-2016 06:21 PM
Saveas by Bookmark Name SaveAs FileFormat ch1325 Excel Programming 8 04-11-2016 04:24 PM
Saveas by Bookmark Name VBS saveas API behaviour is different from Menu saveas Ahmed AbuZekry Word VBA 2 03-23-2015 02:14 AM
Saveas by Bookmark Name saveAs ChDir _ tinfanide Excel Programming 4 11-05-2011 01:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:51 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