Hello.
I have a module in which I construct a STRING holding an email body in HTML format (contains HTML tags, such as <BR> and nbsp's).
Before I send out the email I'd like to present to user with the email content as it will arrive for approval, and based on his choice (OK or Cancel) - stop or proceed with the module execution.
I can't use msgbox or inputbox, as they don't support HTML (and also limited to 1024 chars).
The best idea that comes to mind is calling a FORM (with Rich Text control to accommodate for the HTML message) that has two buttons: "OK" and "CANCEL". Something like this:
intChoice = OpenForm("myForm", args...)
The problem: I don't know how to call a regular FORM from VBA that RETURNS a parameter just like a function does so that I can capture the OK/Cancel action.
Any ideas what's the best strategy here?
Thanks!
I have a module in which I construct a STRING holding an email body in HTML format (contains HTML tags, such as <BR> and nbsp's).
Before I send out the email I'd like to present to user with the email content as it will arrive for approval, and based on his choice (OK or Cancel) - stop or proceed with the module execution.
I can't use msgbox or inputbox, as they don't support HTML (and also limited to 1024 chars).
The best idea that comes to mind is calling a FORM (with Rich Text control to accommodate for the HTML message) that has two buttons: "OK" and "CANCEL". Something like this:
intChoice = OpenForm("myForm", args...)
The problem: I don't know how to call a regular FORM from VBA that RETURNS a parameter just like a function does so that I can capture the OK/Cancel action.
Any ideas what's the best strategy here?
Thanks!