View Single Post
 
Old 06-29-2018, 03:29 PM
d4okeefe d4okeefe is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Apr 2013
Posts: 77
d4okeefe is on a distinguished road
Default

Hmm. I did have that wrong.

Ok. You can get the references in parentheses with the subroutine we've been working on.

It can be tricky to get the country names, because the country names may not be uniform. You could have "Brazil" in one spot, and an official name like "Federative Republic of Brazil" in another.

Nevertheless, I played around with this a bit, and came up with something. I tried to keep it simple enough that you could try it out. However, it is quite long, so I'm including as an attachment.

By the way, you have to paste this at the top of a module. The User-Defined Type has to be placed there.

Again, hope this is helpful.
Attached Files
File Type: txt FindCountriesInDocument.txt (7.3 KB, 23 views)
Reply With Quote