ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel to Word problem (https://www.excelbanter.com/excel-programming/341975-excel-word-problem.html)

Shawn G.

Excel to Word problem
 
This code is trying to create a bookmark in Word from Excel,
The problem is it creates a bookmark that is the whole document rather than
just the text <Insert link here
Any ideas how to fix this?
Thanks,

With WordDoc.Content.Find
.text = "<Insert link here"
If .Execute Then
WordDoc.Bookmarks.Add Name:="bmRlsPlan", Range:=WordDoc.Content
End If
End With



All times are GMT +1. The time now is 06:34 PM.

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