Results 1 to 3 of 3

Thread: Printing on a UserForm

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Printing on a UserForm

    Hi All

    I want to print a some the word on a UserForm. Similarly as in VB6. However the Print method isn't working. This way a printing, is it possible? If this way, then what to do it?

    I based on a this text:
    Print is a fundamental BASIC statement that dates back to the first days of the language in the mid-1960s. Print is used to display lines of data on a form, picture box, printer, and the immediate (Debug) window
    Thanks in advance
    Last edited by Tamgovb; Oct 11th, 2007 at 08:30 AM.
    I know, I know, my English is bad, sorry .....

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Printing on a UserForm

    in vba print is only available to the debug window
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: Printing on a UserForm

    If you wanted to print something to a vbform you need to place an object on that form such as a label or textbox. Then use those object's properties such as .text or .caption to display something....

    or msgbox() is always an option.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width