Copy & paste attachments into custom form text fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In replying to DanL on Jan 5, 2004, Sue Mosher said

"When in doubt, check the object browser: Press ALt+F11 to open the VB
environment in Outlook, then press F2. The method you're looking for i
MailItem.Attachments.Add

I think I understand in principle how this will work however do not have a deep programming background. (I've been building my form using the tools provided, i.e. no direct coding.) Thus, I don't know how to apply this

What I'd like to do is be able to paste files into "text" fields, like how you can do it with the "standard" Task form (which is the type of form that I'm using). These could be Word or Excel docs, images, other emails, etc

In design mode, if I'm on the standard "Task" tab/view (which I've hidden), the "Add attachment" paper-clip icon (at the top of the form, just under the drop-down menus) is activated. If I move off that tab, it's greyed-out

Thus, I think there are two parts to this question

1) How to be able to attach files to a custom form (maybe some guidance on using the "MailItem.Attachments.Add" method?)

2) How to be able to configure my "text" boxes to be able to accept attachments as described above

Thanks for your help

Marc
 
Text boxes can hold only text. The message body control must be present on
the form in order for users to be able to attach files.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



What I'd like to do is be able to paste files into "text" fields, like how
you can do it with the "standard" Task form (which is the type of form that
I'm using). These could be Word or Excel docs, images, other emails, etc.
In design mode, if I'm on the standard "Task" tab/view (which I've
hidden), the "Add attachment" paper-clip icon (at the top of the form, just
under the drop-down menus) is activated. If I move off that tab, it's
greyed-out.
Thus, I think there are two parts to this question:

1) How to be able to attach files to a custom form (maybe some guidance on
using the "MailItem.Attachments.Add" method?)?
2) How to be able to configure my "text" boxes to be able to accept
attachments as described above?
 
Hi Sue, thanks for your reply.

Could you please either be more specific about how I'd include the message body control on the form and/or point me in the right direction to somewhere I can read up on this myself?

Thanks again,

Marc

----- Sue Mosher [MVP-Outlook] wrote: -----

Text boxes can hold only text. The message body control must be present on
the form in order for users to be able to attach files.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



What I'd like to do is be able to paste files into "text" fields, like how
you can do it with the "standard" Task form (which is the type of form that
I'm using). These could be Word or Excel docs, images, other emails, etc.hidden), the "Add attachment" paper-clip icon (at the top of the form, just
under the drop-down menus) is activated. If I move off that tab, it's
greyed-out.
 
The message/notes body is already there on every form. If you removed it,
drag Message or Notes (depending on the type of form) from the Field Chooser
to a customized page on your form.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Marc Weatherill said:
Could you please either be more specific about how I'd include the message
body control on the form and/or point me in the right direction to somewhere
I can read up on this myself?
----- Sue Mosher [MVP-Outlook] wrote: -----

Text boxes can hold only text. The message body control must be present on
the form in order for users to be able to attach files.

What I'd like to do is be able to paste files into "text" fields,
like how
you can do it with the "standard" Task form (which is the type of form that
I'm using). These could be Word or Excel docs, images, other emails, etc.hidden), the "Add attachment" paper-clip icon (at the top of the form, just
under the drop-down menus) is activated. If I move off that tab, it's
greyed-out.
guidance on
using the "MailItem.Attachments.Add" method?)? accept
attachments as described above?
 
YEEEEEEEEESSSSSSSSSS!!!!!!!!

Thanks, Sue

(Wish I knew why I didn't think of it myself though...

----- Sue Mosher [MVP-Outlook] wrote: ----

The message/notes body is already there on every form. If you removed it
drag Message or Notes (depending on the type of form) from the Field Choose
to a customized page on your form
--
Sue Mosher, Outlook MV
Author o
Microsoft Outlook Programming - Jumpstart fo
Administrators, Power Users, and Developer
http://www.outlookcode.com/jumpstart.asp


body control on the form and/or point me in the right direction to somewher
I can read up on this myself
----- Sue Mosher [MVP-Outlook] wrote: ----
Text boxes can hold only text. The message body control must b
present o
the form in order for users to be able to attach files
 
Back
Top