djcsch2001

以下示例从另一个WORD文档,并从中复制数据到本地表中

Private Sub CommandButton1_Click()

  Dim i As Integer

  Dim f As Document

  Set f=Application.Documents.Open("************.doc")

  For i=2 to  f.Tables(7).Rows.Count

    Me.Tables(2).Cell(2+i,1).Range.Text=Mid(f.Tables(7).Cell(i,2).Range.Text,1,Len(f.Tables(7).Cell(i,2).Range.Text)-2)

  Next i

End Sub

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-11-17
  • 2021-11-15
  • 2021-12-30
  • 2022-12-23
  • 2021-11-14
猜你喜欢
  • 2022-02-23
  • 2021-06-19
  • 2021-12-20
  • 2021-12-10
  • 2022-12-23
  • 2021-07-30
相关资源
相似解决方案