ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   excel to word header (https://www.excelbanter.com/excel-programming/435825-excel-word-header.html)

Kate[_2_]

excel to word header
 
Hi,
I have some code that takes cell contents from excel and puts them
into word using bookmarks, eg
..Selection.GoTo What:=wdGoToBookmark, Name:="Customer"
..Selection.TypeText Text:=CStr(ws.Cells(r, 7).Value)

I've also got a bookmark in the header, but can't seem to access the
header to get the text there.

Any suggestions?

Thanks
Kate


All times are GMT +1. The time now is 10:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com