Craig, I am doing this in ms access not in word. Thanks, Julius --- In [email protected], "Craig Gross" <[EMAIL PROTECTED]> wrote: > You may want to ask this question in the Word VBA group. > [EMAIL PROTECTED] As you are looking for Word VBA information. > They have a good group over there, and they should be able to answer > question. > > > > > > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of uhitmiaysuu > Sent: Friday, August 26, 2005 10:50 AM > To: [email protected] > Subject: [AccessDevelopers] Print Pages in Word and Print TIFF files > > > > Hi, > I have 2 problems. First, I have a code to open a 24-page word doc > but I would like to print only pages 1, 7 and 24 as soon as it opens. > > sample: > Dim WordObj As Object > Set WordObj = CreateObject("Word.Application") > > WordObj.Documents.Open "C:\AT&T.DOC" > WordObj.PrintOut Background:=True, Pages:="1,7,24" `this one doesn't > work, it prints out all 24 pages > WordObj.Quit SaveChanges:=No > > Set WordObj = Nothing > Question: how can I print specific pages only? > > My second problem is how to automatically print .TIFF file > (hyperlink) when I click on the link. > > sample: > Me.Package.SetFocus > DoCmd.RunCommand acCmdOpenHyperlink > DoCmd.PrintOut `this will print only the form and not the tiff file > Question: how to print it tiff file? > > I appreciate all your help. > Thanks, > Julius '2000 ver > > > > > > > Please zip all files prior to uploading to Files section. > > > > > _____ > > YAHOO! GROUPS LINKS > > > > * Visit your group "AccessDevelopers > <http://groups.yahoo.com/group/AccessDevelopers> " on the web. > > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED] subject=Unsubscribe > > > > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > _____ > > > > This email and any attachments contain information from Baker & Taylor which may > be confidential, privileged and/or protected by other legal rules. If you are not the > intended recipient, you are hereby advised that any disclosure, copying, distribution or > use of the contents of this email is prohibited. If you have received the email in error, > please notify us by reply email immediately and then delete the email and your reply > from your email system. NOTE: Baker & Taylor accepts no liability for the contents of > this email. This email shall not operate to bind Baker & Taylor to any contract, order > or other obligation.
------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/q7folB/TM --------------------------------------------------------------------~-> Please zip all files prior to uploading to Files section. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AccessDevelopers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
