10-28-2015 06:51 AM
Hello All,
I'm trying to find/replace a keyword value using the keyword name as the identifier.
i.e. if keyword name = "Hello" then keyword value = "Hello World".
I can do it by cycling through the keyword position number but unfortunately they can change order.
I've looked all over the forums and through the training doc's that are on here and cant find anything.
Please see code below and let me know if you have any ideas:
Sub FormAppliedMain
Dim objKeywords
Set objKeywords = OCRDoc.Document.Keywords
Dim lngIndex
Dim strKeywordString
Dim poNumber
Do While (lngIndex < objKeywords.Count)
Select Case objKeywords(lngIndex).Value
Case "17-8921-7/15"
if objKeywords(lngIndex).name = "Evidence Type" then
objKeywords(lngIndex).value = "Tim"
else if objKeywords(lngIndex).name = "Language" then
objKeywords(lngIndex).value = "APPLICATION FOR"
end if
End Select
lngIndex = lngIndex + 1
Loop
Call OCRDoc.Document.StoreKeywords()
End Sub
10-28-2015 06:59 AM
10-28-2015 06:59 AM
10-28-2015 07:30 AM
The issue with doing it that way is that keywords are not on the document. ie. if you find that it's form XYZ then these keywords should be these values and it's a case statement so that it can cover multiple documents without having a template for each.
10-28-2015 07:46 AM
10-28-2015 08:04 AM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.