我在将表格中的单元格复制到另一个单元格时遇到问题。我在这里谈论两个单词文件。我可以复制文本,但子弹消失了,还有一些格式化。我试过.Formattedtext
但仍不能做到。从Word中复制表格并保留格式
Dim test As Word.Cell
'An error occurs something like "Object variable or With block variable not set"
test.Range.FormattedText = CTPDoc.Tables(2).Rows(testCount).Cells(3).Range.FormattedText
你试过'Selection.PasteAndFormat(wdFormatOriginalFormatting)'? –
我还没有这样做。我如何使用它?对不起,我是VBA的新手 – user1173805
你能证明你尝试过什么吗? –