ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Who Can Develop a new vbPrint? (https://www.excelbanter.com/excel-programming/429816-who-can-develop-new-vbprint.html)

Curious[_6_]

Who Can Develop a new vbPrint?
 
I used to use msgbox to show a long message. Some times with a
vbYesNoCancel, or with vbYesOnly. I am wondering if I can get a
vbPrint (but I do not know how). I want to print the message or creat
a new worksheet with the message.

Can you help?

H.Z.

JE McGimpsey

Who Can Develop a new vbPrint?
 
I'm a bit confused. vbYesNoCancel and vbYesOnly are integer constants
that tell the MsgBox() method what buttons to display.

You can't add functionality to MsgBox by generating new constants.

If you want different options, one way is to display a userform which
you create, where you can assign your long message to a label, and which
includes command buttons that you can code to print the message, or to
create a new worksheet with the message.

In article
,
Curious wrote:

I used to use msgbox to show a long message. Some times with a
vbYesNoCancel, or with vbYesOnly. I am wondering if I can get a
vbPrint (but I do not know how). I want to print the message or creat
a new worksheet with the message.



All times are GMT +1. The time now is 03:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com