Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Print UserForm?

Is it possible to print a UserForm from VBA?

And, if so, how?


TIA,



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Print UserForm?

Charlote,

DoCmd.PrintOut , 1, 1, acHigh, 1, True

This says print the form from page 1 to 1 print quality High, print 1 copy
and collate.

God Bless,

Mark A. Sam

"Charlotte E" <@ wrote in message
...
Is it possible to print a UserForm from VBA?

And, if so, how?


TIA,





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default OOOOPs.

Sorry Charlotte,

I thought this was an Access group. I didn't notice it was Excel.
Disregard my previous response.

God Bless,

Mark A. Sam


"Charlotte E" <@ wrote in message
...
Is it possible to print a UserForm from VBA?

And, if so, how?


TIA,





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Print UserForm?

Is it possible to print a UserForm from VBA?

Okey...

I found the way: Me.PrintForm (Simple :-)

But, a little too simple!

It just starts printing - I would like it to ask for a printer and also give
the option to cancel.

For some reason, I can't get...

Application.Dialogs(xlDialogPrinterSetup).Show

....to work within a form???


Anyone?

TIA,




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Print UserForm?

Maybe add a button to the userform for printing and then have it do:

Me.PrintForm



Charlotte E wrote:

Is it possible to print a UserForm from VBA?

And, if so, how?

TIA,


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default Print UserForm?

The easiest way is the PrintForm command:
UserForm1.PrintForm

From code within (behind?) the form itself, you can use
Me.PrintForm

Hope this helps,

Hutch

"Charlotte E" wrote:

Is it possible to print a UserForm from VBA?

And, if so, how?


TIA,




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
How do you print the whole userform? AA2e72E Excel Programming 1 April 28th 06 09:04 AM
Print Userform??? hce[_20_] Excel Programming 1 September 30th 04 03:05 PM
Print Userform? hce[_21_] Excel Programming 1 September 30th 04 03:04 PM
Print userform Alvin Hansen[_2_] Excel Programming 2 August 16th 04 11:27 AM
print userform (for MVA) Mark[_17_] Excel Programming 4 August 4th 04 08:17 AM


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

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

About Us

"It's about Microsoft Excel"