Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2020, 04:24 AM
gmayor's Avatar
gmayor gmayor is offline saving with wrong name Windows 10 saving with wrong 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 'final doc' is the folder then you want


Code:
strPath = Environ("USERPROFILE") & "\Documents\final doc\"
strPath = strPath & TextBox2.Text & "." & TextBox1.Text & ".docx"
and that folder must exist. Note the back slash at the end of the first line
__________________
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Email macro saving the wrong document andywal6 Mail Merge 1 08-13-2019 09:00 PM
Am I using the wrong formula? Father Excel 2 05-24-2017 12:27 PM
Outlook 2010: Saving attachments opens up wrong windows folder to save in jeroen Outlook 0 09-29-2015 01:51 AM
saving with wrong name Word 2010 - Saving Wrong Version WordMaus Word 2 12-24-2013 08:27 AM
saving with wrong name PLEASE HELP-wrong formatting???? bruce Word 10 04-10-2010 03:45 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:16 AM.


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