A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Make email modal



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 7th 06, 07:44 PM posted to microsoft.public.outlook.program_vba
steve
external usenet poster
 
Posts: 317
Default Make email modal

Hi. I am trying to loop through several emails that must be sent with
attached files. I was using the DoCmd.SendObject code, but I have to attach
external files, so I am now using Outlook(2000).

When I used the DoCmd.SendObject code, the email box would pop up and become
modal on my screen until the user clicked send or cancel. However, with
Outlook, when I use the .display code, the outlook email appears on the
screen, but the code after the .display continues to run. I want to halt the
code from running until the user decides what they want to do.

Any tips? Thanks.
Ads
  #2  
Old July 7th 06, 08:17 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Make email modal

Use .Display(True) to make the e-mail Inspector window modal.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Steve" wrote:

Hi. I am trying to loop through several emails that must be sent with
attached files. I was using the DoCmd.SendObject code, but I have to attach
external files, so I am now using Outlook(2000).

When I used the DoCmd.SendObject code, the email box would pop up and become
modal on my screen until the user clicked send or cancel. However, with
Outlook, when I use the .display code, the outlook email appears on the
screen, but the code after the .display continues to run. I want to halt the
code from running until the user decides what they want to do.

Any tips? Thanks.

  #3  
Old July 7th 06, 09:04 PM posted to microsoft.public.outlook.program_vba
steve
external usenet poster
 
Posts: 317
Default Make email modal

Thank you Eric. When I use the .Dispay(True), it does halt the code, but I
do not see the email come up in Outlook. It appears as nothing happens. I
would like to halt the code, have the email come up in Outlook so the user
can add/append to email and the send from there, but I am not seeing the
email appear.

Help..

"Eric Legault [MVP - Outlook]" wrote:

Use .Display(True) to make the e-mail Inspector window modal.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Steve" wrote:

Hi. I am trying to loop through several emails that must be sent with
attached files. I was using the DoCmd.SendObject code, but I have to attach
external files, so I am now using Outlook(2000).

When I used the DoCmd.SendObject code, the email box would pop up and become
modal on my screen until the user clicked send or cancel. However, with
Outlook, when I use the .display code, the outlook email appears on the
screen, but the code after the .display continues to run. I want to halt the
code from running until the user decides what they want to do.

Any tips? Thanks.

  #4  
Old July 7th 06, 09:09 PM posted to microsoft.public.outlook.program_vba
steve
external usenet poster
 
Posts: 317
Default Make email modal

Disregard, my error. I got it and I thank you very much for your help.

"Steve" wrote:

Thank you Eric. When I use the .Dispay(True), it does halt the code, but I
do not see the email come up in Outlook. It appears as nothing happens. I
would like to halt the code, have the email come up in Outlook so the user
can add/append to email and the send from there, but I am not seeing the
email appear.

Help..

"Eric Legault [MVP - Outlook]" wrote:

Use .Display(True) to make the e-mail Inspector window modal.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Steve" wrote:

Hi. I am trying to loop through several emails that must be sent with
attached files. I was using the DoCmd.SendObject code, but I have to attach
external files, so I am now using Outlook(2000).

When I used the DoCmd.SendObject code, the email box would pop up and become
modal on my screen until the user clicked send or cancel. However, with
Outlook, when I use the .display code, the outlook email appears on the
screen, but the code after the .display continues to run. I want to halt the
code from running until the user decides what they want to do.

Any tips? Thanks.

  #5  
Old July 7th 06, 11:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Make email modal

Be careful using modal Inspectors, they often close leaving a "ghost" window
that you have to close manually.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Steve" wrote in message
...
Disregard, my error. I got it and I thank you very much for your help.

"Steve" wrote:

Thank you Eric. When I use the .Dispay(True), it does halt the code, but
I
do not see the email come up in Outlook. It appears as nothing happens.
I
would like to halt the code, have the email come up in Outlook so the
user
can add/append to email and the send from there, but I am not seeing the
email appear.

Help..

"Eric Legault [MVP - Outlook]" wrote:

Use .Display(True) to make the e-mail Inspector window modal.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Steve" wrote:

Hi. I am trying to loop through several emails that must be sent
with
attached files. I was using the DoCmd.SendObject code, but I have to
attach
external files, so I am now using Outlook(2000).

When I used the DoCmd.SendObject code, the email box would pop up and
become
modal on my screen until the user clicked send or cancel. However,
with
Outlook, when I use the .display code, the outlook email appears on
the
screen, but the code after the .display continues to run. I want to
halt the
code from running until the user decides what they want to do.

Any tips? Thanks.


  #6  
Old October 18th 12, 06:52 PM
Gábor Körtvélyessy Gábor Körtvélyessy is offline
Junior Member
 
First recorded activity at Outlookbanter: Oct 2012
Posts: 1
Default

Hi!
One more question about this topic
How can I reach from my code the content of the email before sending.

I call Display(True) which popup the outlook mail
But when the users finish the email and press the send button I would like to reach the content of the email.
How can it be done?

Thank you

Gabor
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make Outlook my default email. Nel Outlook - General Queries 5 June 29th 06 05:59 AM
how do i make email accts. for family on outlook shad Outlook - General Queries 1 June 4th 06 11:41 AM
How do I make OL synchronize w/ current email provider? Karen Outlook - General Queries 1 May 28th 06 05:07 PM
When is a Modal UserForm 'Semi-Modal'...? David OShea Outlook and VBA 3 March 15th 06 12:59 PM
can't make outlook express default email app when send page by email merdrum Outlook Express 3 January 16th 06 03:28 AM


All times are GMT +1. The time now is 04:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.