Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Excel value/variables to Word value/variable?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ectoidly - 21 Aug 2006 11:57 GMT
Hello,
I am writing an Excel macro that opens an existing Word document.
The word document contains 3 tables.  The 3rd table is a template that will
be copied x-number of times based on a value in the Excel spreadsheet...lets
call that variable SheetNum.

I can define, calculate and set SheetNum in Excel without a problem.
How do I then call SheetNum within the Word macro such that it understands
the Excel defined variable?
Doug Robbins - Word MVP - 21 Aug 2006 12:22 GMT
See the following articles:

"Control Excel from Word" at:

http://www.word.mvps.org/FAQs/InterDev/ControlXLFromWord.htm

"Control Word from Excel" at:

http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm

"Early vs. Late Binding" at:

http://www.word.mvps.org/FAQs/InterDev/EarlyvsLateBinding.htm

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hello,
> I am writing an Excel macro that opens an existing Word document.
[quoted text clipped - 7 lines]
> How do I then call SheetNum within the Word macro such that it understands
> the Excel defined variable?
ectoidly - 21 Aug 2006 12:34 GMT
Thanks mate. I'll check those articles out.

> See the following articles:
>
[quoted text clipped - 21 lines]
> > How do I then call SheetNum within the Word macro such that it understands
> > the Excel defined variable?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.