We are 2 person who open the same sharepoint file.
We both have our own onedrive and the files there.
So the path is not the same when we open the same file.
How do i save the file to my path and he to his path.
I have the following code that save both aas pdf and xlm
Sub Knap1_Klik()
'
' Knap1_Klik Makro
' Gem som
'
'
ChDrive "D"
ChDir "D:\Volstrup Golfcenter\Dokumenter - Dokumenter (1)\Rullegræs\Faktura"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=("Faktura") & Range("d4") & Chr(95) & Range("a7")
fname = ("Faktura") & Range("d4") & Chr(95) & Range("a7").Value
ActiveSheet.SaveAs Filename:=fname
End Sub
We both have our own onedrive and the files there.
So the path is not the same when we open the same file.
How do i save the file to my path and he to his path.
I have the following code that save both aas pdf and xlm
Sub Knap1_Klik()
'
' Knap1_Klik Makro
' Gem som
'
'
ChDrive "D"
ChDir "D:\Volstrup Golfcenter\Dokumenter - Dokumenter (1)\Rullegræs\Faktura"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=("Faktura") & Range("d4") & Chr(95) & Range("a7")
fname = ("Faktura") & Range("d4") & Chr(95) & Range("a7").Value
ActiveSheet.SaveAs Filename:=fname
End Sub