View Single Post
 
Old 07-30-2015, 03:51 PM
tddfs tddfs is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Jul 2015
Posts: 3
tddfs is on a distinguished road
Default

Hi: I worked on that before I found the thread with the link. Not sure why I did not see your post??

The code from the link - Sub UpdateBookmark - It seem as though a custom document property would be the best, but I don't see how it ties into the code from the link?

Reviewing your link I was hoping this would work

Code:
Private Sub CommandButton1_Click()
 
Dim MyProp As Range
Dim StrTxt As String
 
With ActiveDocument
 
   Set MyProp = TextBox1
   MyProp.Text = StrTxt
   .Fields.Update
 
 
End With
 
UserForm1.Hide
 
End Sub
Still not working though I would like to think my thought process is correct based on what you have done in the prior link.

On the bright side my error code is now 13 so at least that is going down.

I set up a DOCPROPERTY called MyProp as the placeholder in the word document
Reply With Quote