I have a code that prints .pdf attachments from a folder I select. I need the code to automatically chose a public folder from an exchange server.
[VBA] 'The next four variable declarations are specific to Microsoft Outlook.
Dim ns As NameSpace
Dim smbbox As MAPIFolder
Dim item As Object
Dim atmt As Attachment
'These are standard counters and variables.
Dim filename, thedate As String
Dim i As Integer
'These lines are responsible for the folder that the e-mails will be pulled from.
Set ns = GetNamespace("MAPI")
Set smbbox = Application.GetNamespace("MAPI").PickFolder[/VBA]