megatronixs
Registered User.
- Local time
- Today, 18:52
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I have the below code to copy from a textbox into another one but only as text (no formatting). I need to use the text for an invitation in Outlook as the invitation will not work with rich text format in the body created with vba.
If I copy it in memory from the field "acctions" then I can paste it in the invitation and it maintains the format (strange thing), but with vba it just adds the tags with text and it becomes messy.
Any ideas to paste special text without getting the little dialog box to chose Tex from to continue?
Greetings.
I have the below code to copy from a textbox into another one but only as text (no formatting). I need to use the text for an invitation in Outlook as the invitation will not work with rich text format in the body created with vba.
Code:
Me.acctions.SetFocus
DoCmd.RunCommand acCmdCopy
Me.text_for_email.SetFocus
DoCmd.RunCommand acCmdPasteSpecial
oMail.Body = Me.text_for_email
If I copy it in memory from the field "acctions" then I can paste it in the invitation and it maintains the format (strange thing), but with vba it just adds the tags with text and it becomes messy.
Any ideas to paste special text without getting the little dialog box to chose Tex from to continue?
Greetings.