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 / Outlook / Programming Forms / July 2006

Tip: Looking for answers? Try searching our database.

How do I create a custom print button?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gladys - 27 Jul 2006 17:49 GMT
I've read the post on the forum but I still have no idea how to create a
custom print button on my form. I don't want to use the print button on
Outlook because the print out ends up looking funny. I am hoping to have a
print out that has the exact format as my custom form.
Thanks!
Sue Mosher [MVP-Outlook] - 27 Jul 2006 18:21 GMT
Sub CommandButton1_Click()
   ' put your code to print here
End Sub

The Word template technique is the most flexible and highly recommended. See http://www.outlookcode.com/d/customprint.htm 
Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> I've read the post on the forum but I still have no idea how to create a
> custom print button on my form. I don't want to use the print button on
> Outlook because the print out ends up looking funny. I am hoping to have a
> print out that has the exact format as my custom form.
> Thanks!
Gladys - 27 Jul 2006 22:51 GMT
Thanks Sue. Where do I put this sub command line?

> Sub CommandButton1_Click()
>     ' put your code to print here
[quoted text clipped - 6 lines]
> > print out that has the exact format as my custom form.
> > Thanks!
Sue Mosher [MVP-Outlook] - 27 Jul 2006 23:17 GMT
All Outlook form code goes in the window that appears when you click View Code on an Outlook form in design mode.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> Thanks Sue. Where do I put this sub command line?
>
[quoted text clipped - 3 lines]
>>
>> The Word template technique is the most flexible and highly recommended. See http://www.outlookcode.com/d/customprint.htm 

>>    
>> > I've read the post on the forum but I still have no idea how to create a
>> > custom print button on my form. I don't want to use the print button on
>> > Outlook because the print out ends up looking funny. I am hoping to have a
>> > print out that has the exact format as my custom form.
>> > Thanks!
 
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.