|
-
Oct 11th, 2007, 08:23 AM
#1
Thread Starter
Hyperactive Member
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 .....
-
Oct 11th, 2007, 04:29 PM
#2
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
-
Oct 12th, 2007, 01:11 PM
#3
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|