>Help!! Can anyone tell me how to read information from a table in a word
>document? I know how to put the info in, but when I try to reverse
>the process by assiging the text value to a variable, it bombs.
>
>Here's my code:Public cAddress
>
>
>
>IF NOT USED('BLOCGRAN')
> USE BLOCGRAN IN 0 EXCLU
>ENDIF
>oWord = createobject("word.application")
>oDocument = oWord.Documents.Open("h:\kavitha\shap_help_rah_97_99.doc")
>oRange = oWord.ActiveDocument.tables[1].Range
>oRange = oWord.ActiveDocument.Range()
>oRange = oWord.ActiveDocument.Content
>cAddress=oWord.ActiveDocument.Tables[1].Rows[1].cells[1].text
with oWord
.Documents.Open(lcDoc)
with .ActiveDocument.Tables(1)
for iRow=1 to .Rows.Count
for iCol=1 to .Columns.count
? .Rows(iRow).Cells(iCol).Range.Text
endfor
endfor
endwith
.Quit
endwith
Cetin