K
Kilo Bravo
Sub parseWordTable()
Dim filename As String
Dim i As Integer
Dim myRange As Range
Set myRange = Range("a1:b20")
' Open the file dialog
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = True
.Show
filename = .SelectedItems(1)
End With
Word.Documents.Open filename
For i = 1 To ActiveDocument.Tables(1).Rows.Count
myRange(i, 1) = ActiveDocument.Tables(1).Cell(i, 1)
Next
End Sub
The question is how do I get rid of the none text characters that show up in myRange?
--
K.Brown
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/
Dim filename As String
Dim i As Integer
Dim myRange As Range
Set myRange = Range("a1:b20")
' Open the file dialog
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = True
.Show
filename = .SelectedItems(1)
End With
Word.Documents.Open filename
For i = 1 To ActiveDocument.Tables(1).Rows.Count
myRange(i, 1) = ActiveDocument.Tables(1).Cell(i, 1)
Next
End Sub
The question is how do I get rid of the none text characters that show up in myRange?
--
K.Brown
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/