View Single Post
 
Old 03-08-2018, 04:23 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,371
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

Quote:
Originally Posted by rosscortb View Post
the only thing I have done different is change the strPath to be saved in the 2018 folder instead of the 2017 one
You've actually changed more than that - you've changed what you're supplying for the filename, too. You previously had:
fileName = txtEmployeeName.Value & "Contract"
You now have:
fileName = txtLastName.Value & "," & txtFirstName.Value & " - Contract"
Not that that has anything to do with the error. What is causing the error is that you have also deleted the terminating '\' from the filepath, which should end with:
2018 Offer of Employment Sent\"
not just:
2018 Offer of Employment Sent"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote