Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Sub LOTUS_NOTES_GET_ATTACHMENTS() Application.ScreenUpdating = False Application.DisplayAlerts = False Dim session, db, col, doc, rtitem Dim notesdir As Variant Dim FileName As String Dim lenfilename As Long Dim FileCount As Integer Dim docCollection As Object Dim VIEW As NOTESVIEW Const MAX = 100 Const RICHTEXT = 1 FileCount = 0 Set session = CreateObject("Notes.NotesSession") Set notesdir = session.GETDBDIRECTORY() Set db = session.GETDATABASE("MAIL/GBNUNOTES/XXXXX", "Mail\C\12345A.nsf") Set VIEW = db.GETVIEW("($BLOCKAGES)") Set docCollection = db.ALLDOCUMENTS NoteCount = docCollection.Count For n = 1 To NoteCount Set doc = docCollection.GETNTHDOCUMENT(n) If doc.HASEMBEDDED Then For Each i In doc.ITEMS If i.Type = 1084 Then For Each v In i.Values Set Object = doc.GETATTACHMENT(v) FileCount = FileCount + 1 FileName = Object.Name lenfilename = Len(FileName) If lenfilename > 1 Then If Left(FileName, 18) = "THISFILE_" & MMM_YY Then 'Call Object.EXTRACTFILE(ActiveWorkbook.Path & "/" & MMM_YY & "/" & FileName) Call Object.EXTRACTFILE(ActiveWorkbook.Path & "/" & FileName) End If End If Next v End If Next i End If Next n End Sub