I have problems with compare fields between excel and word. Normally the same strings but not in the same format.
1st Example:
string variable1 : Title_of_book
string variable2 : <<Title_of_book_>>
i would like to have compare of that as true because variable1 IS IN variable2. How to do that?
other example:
string variable1 : Date_of_creation_document_2012
string variablw2 : «Date_of_creation_document_20»
here 12 was cutted somehow in Word but almost whole text is same and this is for sure that field associated so also should be marked as true in compare.
I tried by but its not working as assumed:
If InStr(variable1, variablw2) > 0 Then
INSTR function arguments sorting is as follows:
INSTR(Start,Within,What,SearchType)
You must change your line to this ( Change Strings Order ) :
InStr(1, variablw2 , variable1 , vbTextCompare)
Good Luck
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.