I attached a small word file I am trying to find a way to modify this code so that is picks up only the words that come aftert application and stops picking up words when it gets to the of the cell in that particular table I have written two codes that may be able to do that but I cant seem to get them to do this particular task. here is the first code.
VB Code:
Sub Date_in()
Dim r As Range
Dim rword As Range
Dim h As Long, l As Long
Dim xlApp As Excel.application
Dim xlWB As Excel.Workbook
'find the marker
Set r = ActiveDocument.Range
With r.Find
.ClearFormatting
.Text = "Application:"
.MatchCase = True
.Forward = True
h = 2
'
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = True
Set xlWB = xlApp.Workbooks.Open("C:\Foldername\Day1.xls")
Alright I attached a copy of one of the pages in the word doc what it is doin is picking up the first thing that shows up after application and stops after only picking up the first page for xample I ran it and it gave me "Software/Hardware Status:" and that is the first word that shows in the next table because there is no words after application in this particular page and then it stops those anyone know why it is doin that