Designernadir
New Member
- Joined
- Aug 4, 2019
- Messages
- 8
Can anyone please guide me with a VBA to save my pdf file into different folders everytime I save it. I want the VBA to pick up the destination folder name from a cell reference.
Currently I am using the below VBA to same my pdf to two different drives in our network. But I want the E drive folder destination to be dynamic. is it possible? plzz
Option Explicit
Sub SaveQuotationinPDF()
Sheet1.Range("MOY125:MPD183").ExportAsFixedFormat xlTypePDF, Filename:="Z:\QUOTATIONS\QUOTATIONS (ARMO)\2020 -With sales code\Nadir\" & Sheet1.Range("MPC132").Value, openafterpublish:=True
Sheet1.Range("MOY125:MPD183").ExportAsFixedFormat xlTypePDF, Filename:="E:\My Documents\Armoplast\Armoplast Customer DIR\Local Quotations 13 Aug 2020\" & Sheet1.Range("MPC132").Value, openafterpublish:=True
End Sub
Currently I am using the below VBA to same my pdf to two different drives in our network. But I want the E drive folder destination to be dynamic. is it possible? plzz
Option Explicit
Sub SaveQuotationinPDF()
Sheet1.Range("MOY125:MPD183").ExportAsFixedFormat xlTypePDF, Filename:="Z:\QUOTATIONS\QUOTATIONS (ARMO)\2020 -With sales code\Nadir\" & Sheet1.Range("MPC132").Value, openafterpublish:=True
Sheet1.Range("MOY125:MPD183").ExportAsFixedFormat xlTypePDF, Filename:="E:\My Documents\Armoplast\Armoplast Customer DIR\Local Quotations 13 Aug 2020\" & Sheet1.Range("MPC132").Value, openafterpublish:=True
End Sub