S
surena
Hi,
I wrote a macro such that I can save a file with a particular name
(name and surname of a person.doc).
Sub savename()
Dim filename As String
filename = ActiveDocument.FormFields("surname").Result + " " +
ActiveDocument.FormFields("name").Result
ActiveDocument.SaveAs filename:=filename
End SubIt works but I want to create this file in a particular folder
like C:/patient. With this macro I create the file and then I must move
it to that folder. How I can improve this macro to include the path
name in it?
Surena
I wrote a macro such that I can save a file with a particular name
(name and surname of a person.doc).
Sub savename()
Dim filename As String
filename = ActiveDocument.FormFields("surname").Result + " " +
ActiveDocument.FormFields("name").Result
ActiveDocument.SaveAs filename:=filename
End SubIt works but I want to create this file in a particular folder
like C:/patient. With this macro I create the file and then I must move
it to that folder. How I can improve this macro to include the path
name in it?
Surena