nkpan
04-04-2018, 11:48 PM
Hello all,
This is my first post of my life :).
I am working on word macro where i need to find if a string is present in the word document or not and if present, then i need to know if its within a table or not.. It needs to highlight if its not in table.
As of now i am only able to find the string but for identifying the presence in table or not, even after using the below line of code it work sometimes but not all the time.
If cRange.Tables.Count > 0 then msgbox "Yes"
Many thanks in advance, if anyone could please help in this regards
Nkpan
This is my first post of my life :).
I am working on word macro where i need to find if a string is present in the word document or not and if present, then i need to know if its within a table or not.. It needs to highlight if its not in table.
As of now i am only able to find the string but for identifying the presence in table or not, even after using the below line of code it work sometimes but not all the time.
If cRange.Tables.Count > 0 then msgbox "Yes"
Many thanks in advance, if anyone could please help in this regards
Nkpan