![]() |
#1
|
|||
|
|||
![]()
I want to save file as:
firstname.lastname.docx in folder c:\users\savvy\documents\final doc\ firstname and lastname are bookmarks from userform but am getting runtime error 5152 this is not a valid filename code: strPath = Environ("USERPROFILE") & "\Documents\final doc" ActiveDocument.SaveAs strPath & TextBox2.Text & "." & TextBox1.Text & ".docx" any advice appreciated |
|
![]() |
||||
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 |
![]() |
WordMaus | Word | 2 | 12-24-2013 08:27 AM |
![]() |
bruce | Word | 10 | 04-10-2010 03:45 PM |