Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: 2 Nov 2005 04:14:41 -0800,    group: microsoft.public.word.vba.addins        back       


How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file?   
Hello guys. I know nothing of programming and would like to know how
can I make a routine that, as I said, would print automatically a word
file after it's been changed via an ole link with an excel worksheet
(that implies I've changed the excel file).
I would like the routine to be on the excel file, so I won't need to
open the word file everytime.

Also, I made the ole link and it updates the word document after I open
it, is there a way it actualizes it without needing to open the word
document? That way the first part (the automated printing) would work.

Thanks a lot, my fellow computer lovers :) .
date: 2 Nov 2005 04:14:41 -0800   author:   Starriol

Re: How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file?   
1. What you are asking for is impossible. Your code in Excel will have to 
open the Word document in Word in order to print it.

2. Please don't post multiple copies of the same question to different 
groups. See here for reasons why.


Tips from MVPs on posting to the Word newsgroups
http://www.word.mvps.org/FindHelp/Posting.htm


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org


"Starriol"  wrote in message 
news:1130933681.448962.206660@o13g2000cwo.googlegroups.com...
> Hello guys. I know nothing of programming and would like to know how
> can I make a routine that, as I said, would print automatically a word
> file after it's been changed via an ole link with an excel worksheet
> (that implies I've changed the excel file).
> I would like the routine to be on the excel file, so I won't need to
> open the word file everytime.
>
> Also, I made the ole link and it updates the word document after I open
> it, is there a way it actualizes it without needing to open the word
> document? That way the first part (the automated printing) would work.
>
> Thanks a lot, my fellow computer lovers :) .
>
date: Wed, 2 Nov 2005 12:22:34 -0000   author:   Jonathan West

Re: How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file?   
OK, that's not a problem for me.
I don't care if the excel files opens the word file in order to
autoprint it and actualize the word file.
As I said, I wanna change data in an excel file, that should actualize
the info on a word file ( I know how to do that part) and open the word
file to print it.
date: 3 Nov 2005 04:01:10 -0800   author:   Starriol

Re: How to make a routine that will automatically print a word file after it has been changed via an ole link to an excel file?   
"Starriol"  wrote in message 
news:1131019270.113353.16860@z14g2000cwz.googlegroups.com...
> OK, that's not a problem for me.
> I don't care if the excel files opens the word file in order to
> autoprint it and actualize the word file.
> As I said, I wanna change data in an excel file, that should actualize
> the info on a word file ( I know how to do that part) and open the word
> file to print it.
>

This article shows how to open Word from Excel.

Control Word from Excel
http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm

Having opened Word, you will need to open the document and then use the 
PrintOut method to print it


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
date: Thu, 3 Nov 2005 13:13:24 -0000   author:   Jonathan West

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us