Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Book-Marked docs and Excel

Status
Not open for further replies.

Anna007

Programmer
Nov 29, 2004
38
CA
I have the following and I get an error:

Mydoc2.Bookmarks("Equip_TotalPrice").Range.Text = Worksheets("Price").Range("ProposedEqptSellingPrice").Value

My doc is book-marked and I need to grab the appropriate value from Excel and put it into the Book-Marked Field.

Need help asap please... :)

Thanx,
Anna
 
I get an error
Any chance you could post the whole error message, the highlighted code when in debug mode, which VBA you use (word, excel, ...), how is Mydoc2 instantiated, ....

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Yes, please post code. Note, if you are reusing a bookmark in Word, ifyou are not careful when you insert Range.Text it will; insert the text, but DELETE the bookmark.

Gerry
 
Hi,
Thank you but I have got it working fine now.
Thanx anyways,
Anna
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top