A
Alex St-Pierre
Hi !
When I copy a table from excel to word, the cells(1,1) in word contains a
bookmark. Is there a possibility to copy the table without the excel bookmark
?
Dim rngExcel As Excel.Range
Set appExcel = GetObject(, "Excel.Application")
Set wbExcel = appExcel.Workbooks(fileExcel)
Set rngExcel = wbExcel.Application.Range("table1_1")
Set rng = docWord2.Tables(1).Range
Set tbl = rng.Tables(1)
tbl.Select
tbl.Delete
rngExcel.Copy
Selection.PasteExcelTable LinkedToExcel:=False, WordFormatting:=False,
RTF:=False
Thank you.
When I copy a table from excel to word, the cells(1,1) in word contains a
bookmark. Is there a possibility to copy the table without the excel bookmark
?
Dim rngExcel As Excel.Range
Set appExcel = GetObject(, "Excel.Application")
Set wbExcel = appExcel.Workbooks(fileExcel)
Set rngExcel = wbExcel.Application.Range("table1_1")
Set rng = docWord2.Tables(1).Range
Set tbl = rng.Tables(1)
tbl.Select
tbl.Delete
rngExcel.Copy
Selection.PasteExcelTable LinkedToExcel:=False, WordFormatting:=False,
RTF:=False
Thank you.