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])
 
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)
 
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])
 
Back
Top