Home
TeamSite
Outlook VBA - return iManage number for selected documents
Aphillippe
Hi All,
I'm trying to write what would appear to be relatively simple VBA code to loop through all selected iManage documents and return the document number.
Code is as follows:
'Declarations
Dim FilesiteNumber(9) As String
Dim myOlSel As Selection
Dim objDoc As Object
Dim j As Long
'Set myOlSel to current selection
Set myOlSel = ActiveExplorer.Selection
'Loop through each selected item to get Filesite Number
For j = 1 To myOlSel.Count
Set objDoc = myOlSel.Item(j)
FilesiteNumber(j) = objDoc.GetAttributeByID(imProfileDocNum)
Next j
'Tidy up
Set myOlSel = Nothing
I'm getting Runtime Error 438: Object doesn't support this property or method at line: FilesiteNumber(j) = objDoc.GetAttributeByID(imProfileDocNum)
Is it because I'm declaring objDoc as an Outlook object, not an imanage document? Or is the GetAttributeByID syntax incorrect?
I've tried every combination of the above with no joy.
I'm totally new to the iManage API so any help would be very welcome.
Thanks in advance.
Find more posts tagged with
Comments
There are no comments yet