View Single Post
 
Old 07-10-2014, 01:12 AM
elmnas elmnas is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Jul 2014
Posts: 6
elmnas is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
ActiveDocument.Path will return the current document's folder name. To go up one level, simply strip off the last folder name from that. For example:
Code:
Sub Demo()
Dim StrOldPath As String, StrNewPath As String
StrOldPath = ActiveDocument.Path
StrNewPath = Left(StrOldPath, InStrRev(StrOldPath, "\"))
StrOldPath = StrOldPath & "\"
MsgBox StrOldPath & vbCr & StrNewPath
End Sub


I am not so familiar with VBA, but this code flawly,

how do I make the last steps in my thread
copy the .pdf and create folder?

Thank you so much in advance sir
Reply With Quote