![]() |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]() Hello I have some code that when run the save as box shows and the file name which is the employee name entered in the text field box by the user. For example. Joe Bloggs contract.docm This bit is fine. But how do I get it so it shows the name but with a different folder location. So at the moment the word doc is opened from here -H:\HR\Reward & Shared Services\Shared Services Only\1 ~ Starters\3 ~ Contract Templates\DB Templates but when it's completed I want it to be saved in this location- H:\HR\Reward & Shared Services\Shared Services Only\1 ~ Starters\5 ~ Offers Sent\2017 Offer of Employment Sent But with the employees name. Code:
Dim fileName As String fileName = txtEmployeeName.Value & "Contract" With Dialogs(wdDialogFileSaveAs) .name = fileName .Show End With End Sub Ross |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sergey SPb | Drawing and Graphics | 7 | 04-24-2017 11:25 PM |
Word for Mac 2011: Change default open/save file locations? | cglenn | Word | 0 | 06-01-2015 10:34 AM |
![]() |
NobodysPerfect | Word VBA | 2 | 08-14-2014 10:09 PM |
![]() |
albertc | Excel Programming | 1 | 05-13-2012 07:05 PM |
![]() |
jabberwocky12 | Word VBA | 2 | 10-22-2010 12:23 PM |