T
Ted Theodoropoulos
i am trying to select the contents of a cell in a Word 2K table and
copy and paste the contents elsewhere in the document. the problem is
that the formatting is lost. the .FormattedText property doesn't seem
to help in the least. i've been tinkering with various
methods/properties for almost a whole day. any suggestions?
please?!?!
Public Sub Test()
Dim objDoc As Word.Document
Dim oSel As Word.Selection
Dim rng As Range
Set objDoc = Application.ActiveDocument
objDoc.Tables.Item(1).Cell(3, 2).Range.Select
'oSel = objDoc.Tables.Item(1).Cell(3, 2).Range.
objDoc.Tables.Item(1).Cell(4, 2).Range.Text = Selection.Text
'Set rng = objDoc.Tables.Item(1).Cell(3, 2).Range
'objDoc.Tables.Item(1).Cell(4, 2).Range.InsertAfter (rng.Text)
End Sub
copy and paste the contents elsewhere in the document. the problem is
that the formatting is lost. the .FormattedText property doesn't seem
to help in the least. i've been tinkering with various
methods/properties for almost a whole day. any suggestions?
please?!?!
Public Sub Test()
Dim objDoc As Word.Document
Dim oSel As Word.Selection
Dim rng As Range
Set objDoc = Application.ActiveDocument
objDoc.Tables.Item(1).Cell(3, 2).Range.Select
'oSel = objDoc.Tables.Item(1).Cell(3, 2).Range.
objDoc.Tables.Item(1).Cell(4, 2).Range.Text = Selection.Text
'Set rng = objDoc.Tables.Item(1).Cell(3, 2).Range
'objDoc.Tables.Item(1).Cell(4, 2).Range.InsertAfter (rng.Text)
End Sub