I'm trying to figure out how to do the following:
I need to write a Microsoft word macro in Visual Basic which will search through a document and every time it finds a certain word it replaces it with a picture. The picture that it needs to replace it with is determined by a text file. I figured the best way to do this would be to open the text file as an input file and create a hash table. The text file is set up basically like this exept its much larger.
A pic1
b pic2
c pic3

I have the search function which finds the word inside the word document figured out, the problem that I'm having is with reading in the file that contains the key and value and creating the hash table and getting the value out of it. I've tried looking for some code examples that will help and am having trouble finding any. Any help is much appreciated.