The following is what I am trying to do:
I am reading an excel file and storing the string value present in each cell, and trying to match the string in a word file.
The program works fine except that I am having problems in returning the page numbers of the matched string.
The page number value is always returned as one.
The following is a piece of what I had written:
If FindStringInFile(wordfilename, vValues) Then
currentPageNumber = word.ActiveDocument.ActiveWindow.Selection.Range.Information(Microsoft.Office.Interop.Word.WdInformation.wdActiveEndAdjustedPageNumber)
TextBox3.Text = currentPageNumber
wordfilename is my word file and vValues is my excel string data
Thanks in Advance for the help!