VBA to copy text from excel to on specific location in wordfile

后端 未结 2 1711
死守一世寂寞
死守一世寂寞 2021-01-28 14:50

Problem: Pasting copied data from excel to specific location in a word file.

Currently I have code which can paste the value, but it does so to \"paragr

2条回答
  •  无人共我
    2021-01-28 15:30

    You could also use some bookmarks:

    You can choose where you put your bookmark and then write on it like this ThisDocument.Bookmarks("NAME_OF_THE_BOOKMARK").Range.Text = THE_EXCEL_DATA

    To place a bookmark you have to click on the selected area and then go on Insert->Bookmarks and then name it.

提交回复
热议问题