Very visual basic

  • Thread starter Thread starter Robert Couchman
  • Start date Start date
R

Robert Couchman

Hello and good morning to all,

i have a bit of a VB question to ask, does anyone know if
there is any code that could be used on a button so it
prints the current window to a printer??

Thank you,

Robert Couchman
([email protected])
 
Hi Robert
why don't you use the toolbar print button for this :-)
 
What do you mean by the current window. Printout can print an object such as
the activesheet.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Of course i would use the toolbar....

if i had a toolbar on the form! :-)

any more ideas?? there all welcome!

Thank you,

Robert Couchman
([email protected])
 
By current window, i mean the Form/Window that is in use!

i have a form that displays all my stats for the program,
what i would like is for a button (print) to print the
form for the user.

i know you can print the form in VB but this does not
contain the data, as this is inserted when i run the
program.

thank you,

Robert Couchman
([email protected])
 
Thank you Fran,

but im afraid its not a worksheet im trying to print!

its a form!

a userform!

although i might try "userformname".printout

doubt it working!

i will be back!

thank you,

Robert Couchman
([email protected])
 
There wouldn't be any quotes around the name

userform1.printform
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with location? 2
IF... change colour 4
Thinking outside the box 2
counting cells 2
Back to the brick wall!! 1
Anyone can help 5
printing problem 1
Textbox problem 11

Back
Top