G
GaryRCassidy
I have been trying to work out how to retrieve the text from a
specific cell in all files in one folder. I'm almost there but am
missing some simple thing I'm sure. Here's where I have gotten to so
far with one of the documents open. Ultimately, the goal is to create
a separate document containing the text from the other 12.
All pointers will be appreciated.
Public Sub GetText()
MyName = Dir$("c:\test\" & "*.*")
Do While MyName <> ""
strCellText = ActiveDocument.Tables(1).Cell(1, 1).Range.Text
strCellText = Left(strCellText, Len(strCellText) - 2)
MsgBox strCellText
MyName = Dir
Loop
End Sub
specific cell in all files in one folder. I'm almost there but am
missing some simple thing I'm sure. Here's where I have gotten to so
far with one of the documents open. Ultimately, the goal is to create
a separate document containing the text from the other 12.
All pointers will be appreciated.
Public Sub GetText()
MyName = Dir$("c:\test\" & "*.*")
Do While MyName <> ""
strCellText = ActiveDocument.Tables(1).Cell(1, 1).Range.Text
strCellText = Left(strCellText, Len(strCellText) - 2)
MsgBox strCellText
MyName = Dir
Loop
End Sub