This is the current code, need you to edit it for
save file in PDF with file name from A1. it should overwrite if existing file. file should save to C:\Users\User\OneDrive\Invoice NAT\
Sub CreatePDF()
Dim wSheet As Worksheet
Dim vFile As Variant
Dim sFile As String
Set wSheet = ActiveSheet
sFile = Replace(Replace([login to view URL], " ", ""), ".", "_") _
& Range("A1") _
& ".pdf"
sFile = [login to view URL] & "" & sFile
vFile = [login to view URL] _
(InitialFileName:=sFile, _
FileFilter:="PDF Files (*.pdf), *.pdf", _
Title:="Select Folder and FileName to save")
If Dir(vFile) > vbNullString Then _
If MsgBox("Overwrite File?", _
vbExclamation + vbYesNo, "Overwrite?") = vbNo Then Exit Sub
If vFile <> "False" Then
[login to view URL]("B2:J44").ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=vFile, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
MsgBox "PDF file has been created."
End If
End Sub
Hi Roddy.. Just bid on this project with just $5 which is very very low on my hourly rate you know that.. Please ping me if you are ok with this bid. :)
$5 AUD in 40 days
4.9 (12 reviews)
4.0
4.0
4 freelancers are bidding on average $6 AUD/hour for this job
Hello,
I am Luis from Venezuela and it will be my pleasure to help you with this project. I can add the routine missing to save your work as pdf.
Please contact me by chat to clarify somethings.
Looking forward to hear from you soon!
Luis Romero
I have read your proposal that you want to skip save confirm and save the file to another directory, I am proficient in using Microsoft Excel macro and visual basic, I can finish your requirement very quickly, I assure you the project will be delivered with high quality and satisfaction. Awaiting for your precious reply.