LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Email an Excel form input using VBA

You are welcome

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



wrote in message ...
That worked! :)

Thanks so much!


-----Original Message-----
Hi Dick and Jaime

Look in the problem section
You must fill in the SMTP server in the code
http://www.rondebruin.nl/cdo.htm#Problems

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Dick Kusleika"

wrote in message news:%
...
Jaime

You can automate Outlook which will give you the same

result as the
RoutingSlip except that you will have more flexibility

(you don't have to
attach the workbook). Look here for info on automating

outlook

www.dicks-clicks.com

It would be nice, though, if you could get around that

CDO error because you
wouldn't have to deal with the security prompt. Sadly,

I don't know enough
about CDO to help you there. Everything I know comes

from here

http://www.rondebruin.nl/cdo.htm

so it might be worth browsing around.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Jaime" wrote in

message
...
Yes, a user form create on the VBA project. I use the
Auto_Open on a macro to initialize the UserForm and
minimize the worksheet. The User then fills out the

form
and the output is emailed to several recipients. I

used
the collectiv data object (CDO) code. But some users
Outlook's are not current and they received a Run Time
Error (Sendusing eror). Searched the error and

according
the the XGEN ariticle it's the outlook 2000 or 2002
without any service pack.

Dim iMsg As Object
Dim iConf As Object
Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
With iMsg
Set .Configuration = iConf
.To = "
.From = "
.Subject = "This is a test"
.Send
End With
Set iMsg = Nothing
Set iConf = Nothing
End Sub

I know that I can use Mapi to do this and it will

prompt
users that this program will accesss their mail

program.
But It was attaching he Spreadheet and I just want he
Email with the outut of the UserForm.
Here the code I used before...

Application.ScreenUpdating = True
ActiveSheet.Select
'ActiveWorkbook.HasRoutingSlip = True
With ActiveWorkbook.RoutingSlip

.Recipients = "
.Subject = "Test "
.Message = MyMessage
.Delivery = xlAllAtOnce
.ReturnWhenDone = True
.TrackStatus = True
End With
Application.ScreenUpdating = True
ActiveWorkbook.Route


-----Original Message-----
Jaime

When you say form, do you mean UserForm, or do you

mean
that you've
replicated a form on an Excel worksheet?

What mail client are you using and do you need to be

able
to use it on
various mail clients?

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Jaime" wrote

in
message
...
Hi all,

Have a question. Created a form in Excel and want

to
email
just the input by the user not the excel

spreasheet. How
can I perform this. I used activeworkbook.routing

but
this
emails the spreashhet.

If anyone can help me it would be greatly

appreciated.

Thanks in advance!
Jaime


.





.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input form in Excel 2007 Stef Excel Discussion (Misc queries) 2 February 19th 09 12:07 PM
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
How can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
How do I input email addresses in Excel without the hyperlink, vms Excel Discussion (Misc queries) 3 February 21st 05 09:08 PM
Using Outlook with Excel to Input Names into Email Paul Excel Programming 4 July 22nd 03 11:04 PM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"