Hi I have an Excel sheet that generates Purchase orders.
I also have a macro that emails and saves the PO to the relevant person and saves it on our company's one drive.
I am looking for suggestions on how the manager can electronically approve (sign) the po.
Fill and sing using adobe does seem to take to long and any person in the company can copy the managers signature as picture and use it.
I was thinking of issuing the manager a pin code that he can authorise th po with ( so if he enters the pin it authorizes the po)
How can I include that in my VBA
My curent VBA is
Sub Send_Email()
Dim wPath As String, wFile As String
wPath = "https://our company's sharepoint adress /"
wFile = Range("d3").Value & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=wPath & wFile, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Set dam = CreateObject("Outlook.Application").CreateItem(0)
'
dam.To = Range("b39")
dam.Subject = Range("d3")
dam.Body = wPath & wFile
dam.Attachments.Add wPath & wFile
dam.Send
MsgBox "Email sent"
End Sub
I also have a macro that emails and saves the PO to the relevant person and saves it on our company's one drive.
I am looking for suggestions on how the manager can electronically approve (sign) the po.
Fill and sing using adobe does seem to take to long and any person in the company can copy the managers signature as picture and use it.
I was thinking of issuing the manager a pin code that he can authorise th po with ( so if he enters the pin it authorizes the po)
How can I include that in my VBA
My curent VBA is
Sub Send_Email()
Dim wPath As String, wFile As String
wPath = "https://our company's sharepoint adress /"
wFile = Range("d3").Value & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=wPath & wFile, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
Set dam = CreateObject("Outlook.Application").CreateItem(0)
'
dam.To = Range("b39")
dam.Subject = Range("d3")
dam.Body = wPath & wFile
dam.Attachments.Add wPath & wFile
dam.Send
MsgBox "Email sent"
End Sub