Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old July 19th 05, 11:28 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2005
Posts: 1
Default simple? Word Bookmarks link to Excel


I have a fairly complex problem that requires a simple solution. I hav
a worksheet with many records in approximately 100 columns. I also hav
a Word template with many bookmarks. I would like to link the bookmar
entries to cells in the excel file so that when the file is updated s
are the entries in the Word file. I can figure out how to do thi
manually but no with VBA.

Also, since there are several records I need to create a document fro
the template for each of the records. All of these need to put on
different page in a continuous Word document.

Any and all help would be greatly appreciated!!

--
JFamil
-----------------------------------------------------------------------
JFamilo's Profile: http://www.excelforum.com/member.php...fo&userid=1727
View this thread: http://www.excelforum.com/showthread.php?threadid=38854


  #2   Report Post  
Old July 20th 05, 03:58 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2005
Posts: 1
Default simple? Word Bookmarks link to Excel


Thank you! This is so much help. I can't wait to try it.

Just one question though... will this link my bookmarks to my excel
file so that if the excel file is updated then the bookmarks in the
word file are updated too?

I think I have to change the statement:

Code:
--------------------

appWD.ActiveDocument.FormFields("Surname2").Result =
Worksheets(gCounter).Cells(gMyRow, 4).Value

--------------------

But I don't know what I need to change it to to do the links.
Thanks.


--
JFamilo
------------------------------------------------------------------------
JFamilo's Profile: http://www.excelforum.com/member.php...o&userid=17276
View this thread: http://www.excelforum.com/showthread...hreadid=388545

  #3   Report Post  
Old July 20th 05, 04:32 AM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 4,391
Default simple? Word Bookmarks link to Excel

JFamilo,
Never used it, but Word has a Link option for a Field.
Check out "Field codes: Link field" in Word Help. It appears to do what you
want.

NickHK

"JFamilo" wrote in
message ...

Thank you! This is so much help. I can't wait to try it.

Just one question though... will this link my bookmarks to my excel
file so that if the excel file is updated then the bookmarks in the
word file are updated too?

I think I have to change the statement:

Code:
--------------------

appWD.ActiveDocument.FormFields("Surname2").Result =
Worksheets(gCounter).Cells(gMyRow, 4).Value

--------------------

But I don't know what I need to change it to to do the links.
Thanks.


--
JFamilo
------------------------------------------------------------------------
JFamilo's Profile:

http://www.excelforum.com/member.php...o&userid=17276
View this thread: http://www.excelforum.com/showthread...hreadid=388545



  #4   Report Post  
Old July 20th 05, 11:35 PM posted to microsoft.public.excel.programming
external usenet poster
 
First recorded activity by ExcelBanter: Nov 2003
Posts: 104
Default simple? Word Bookmarks link to Excel

JFamilo,
The bookmarks aren't linked to XL.
All my code does is to fill in the bookmarks for you from XL
If you add, remove or rename any bookmarks, you'll have to add code to fill
them.

You could set up all the possible bookmarks on the Word Doc. and then use If
statements to either put in whatever you want or, if you don't want to use
them in some versions, put in "" or If condition Then ignore those "Result
=" lines

The other way around the problem would be to have several versions of your
Word Doc and open the appropriate one.
You would then need different code for each version.

Henry


"JFamilo" wrote in
message ...

Thank you! This is so much help. I can't wait to try it.

Just one question though... will this link my bookmarks to my excel
file so that if the excel file is updated then the bookmarks in the
word file are updated too?

I think I have to change the statement:

Code:
--------------------

appWD.ActiveDocument.FormFields("Surname2").Result =
Worksheets(gCounter).Cells(gMyRow, 4).Value

--------------------

But I don't know what I need to change it to to do the links.
Thanks.


--
JFamilo
------------------------------------------------------------------------
JFamilo's Profile:
http://www.excelforum.com/member.php...o&userid=17276
View this thread: http://www.excelforum.com/showthread...hreadid=388545





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Word Bookmarks JFamilo[_7_] Excel Programming 1 July 14th 05 05:13 AM
exporting Excel data to Word using Bookmarks Dave Kilroy Excel Programming 0 May 19th 05 05:33 PM
VBA, Bookmarks, Word and Excel... help please! [email protected] Excel Programming 2 February 13th 05 09:03 PM
Checking for bookmarks in Word document jag Excel Programming 2 June 14th 04 02:15 AM
Using Word Bookmarks to read Text Charles Excel Programming 2 February 12th 04 03:40 PM


All times are GMT +1. The time now is 08:07 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017