Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sendmail: Problem when used after a Userform

I have a VBA application which requires the same workbook
to be sent (using sendmail) to multiple recipients, one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel crashes
when it tries to process sendmail for the second time.
This problem only arises where the sendmail loop appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform, putting in
a delay between sendmails, putting the userform.show into
a different module. The problem occurs even if I show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sendmail: Problem when used after a Userform

Hi Bernard

Do you use Outlook or Outlook Express

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot" wrote in message ...
I have a VBA application which requires the same workbook
to be sent (using sendmail) to multiple recipients, one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel crashes
when it tries to process sendmail for the second time.
This problem only arises where the sendmail loop appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform, putting in
a delay between sendmails, putting the userform.show into
a different module. The problem occurs even if I show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Sendmail: Problem when used after a Userform

Hi, Ron.

Amazingly, I've already sent you an email about this, as
everywhere I looked on the web I saw your name!

I'm using Outlook 2000, Excel 2000, and WinXP Pro.

Regards,

Bernard.

-----Original Message-----
Hi Bernard

Do you use Outlook or Outlook Express

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot"

wrote in message news:2522601c4602e$26826b60
...
I have a VBA application which requires the same

workbook
to be sent (using sendmail) to multiple recipients, one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel crashes
when it tries to process sendmail for the second time.
This problem only arises where the sendmail loop

appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform, putting

in
a delay between sendmails, putting the userform.show

into
a different module. The problem occurs even if I show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sendmail: Problem when used after a Userform

There is a Bug in Outlook

http://www.rondebruin.nl/mail/problems.htm
Try number 4

--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message ...
Hi, Ron.

Amazingly, I've already sent you an email about this, as
everywhere I looked on the web I saw your name!

I'm using Outlook 2000, Excel 2000, and WinXP Pro.

Regards,

Bernard.

-----Original Message-----
Hi Bernard

Do you use Outlook or Outlook Express

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot"

wrote in message news:2522601c4602e$26826b60
...
I have a VBA application which requires the same

workbook
to be sent (using sendmail) to multiple recipients, one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel crashes
when it tries to process sendmail for the second time.
This problem only arises where the sendmail loop

appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform, putting

in
a delay between sendmails, putting the userform.show

into
a different module. The problem occurs even if I show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Sendmail: Problem when used after a Userform

Ron,

Your item 4 is:
========================
Because there is a bug in Outlook it is possible that you
must uncheck
"send immediately when connect" in the Outlook options.
ToolsOptionsMail Setup in the Outlook menu.
=====================

Perhaps this is not for Outlook 2000? If I go into
ToolsOptions I do not see a Mail Setup choise.

I get Preferences/E-mail/E-mail options and Mail
Services, but I cannot see the "send immediately when
connect" setting.

Berni.


-----Original Message-----
There is a Bug in Outlook

http://www.rondebruin.nl/mail/problems.htm
Try number 4

--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message

...
Hi, Ron.

Amazingly, I've already sent you an email about this,

as
everywhere I looked on the web I saw your name!

I'm using Outlook 2000, Excel 2000, and WinXP Pro.

Regards,

Bernard.

-----Original Message-----
Hi Bernard

Do you use Outlook or Outlook Express

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot"

wrote in message news:2522601c4602e$26826b60
...
I have a VBA application which requires the same

workbook
to be sent (using sendmail) to multiple recipients,

one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel

crashes
when it tries to process sendmail for the second

time.
This problem only arises where the sendmail loop

appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform,

putting
in
a delay between sendmails, putting the userform.show

into
a different module. The problem occurs even if I

show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?


.



.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Sendmail: Problem when used after a Userform

Hi Bernard

I have open a Virtual PC to check it and Outlook 200 have this setting in
ToolsOptionsMail Delivery

Post your code if this is not working

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot" wrote in message ...
Ron,

Your item 4 is:
========================
Because there is a bug in Outlook it is possible that you
must uncheck
"send immediately when connect" in the Outlook options.
ToolsOptionsMail Setup in the Outlook menu.
=====================

Perhaps this is not for Outlook 2000? If I go into
ToolsOptions I do not see a Mail Setup choise.

I get Preferences/E-mail/E-mail options and Mail
Services, but I cannot see the "send immediately when
connect" setting.

Berni.


-----Original Message-----
There is a Bug in Outlook

http://www.rondebruin.nl/mail/problems.htm
Try number 4

--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message

...
Hi, Ron.

Amazingly, I've already sent you an email about this,

as
everywhere I looked on the web I saw your name!

I'm using Outlook 2000, Excel 2000, and WinXP Pro.

Regards,

Bernard.

-----Original Message-----
Hi Bernard

Do you use Outlook or Outlook Express

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Bernard Foot"
wrote in message news:2522601c4602e$26826b60
...
I have a VBA application which requires the same
workbook
to be sent (using sendmail) to multiple recipients,

one
at a time. (The VBA loops through a list of users,
amending the workbook before each mailing.)

The first recipient mailing works OK, but Excel

crashes
when it tries to process sendmail for the second

time.
This problem only arises where the sendmail loop
appears
after a userform.show in the same module. I've tried
using both userform.hide and unload userform,

putting
in
a delay between sendmails, putting the userform.show
into
a different module. The problem occurs even if I

show a
userform with absolutely nothing in it, and just
terminate the form.

Any ideas?


.



.



Reply
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
sendmail macro problem in Excel vic1 Setting up and Configuration of Excel 10 May 28th 08 11:35 AM
Userform problem? law Excel Discussion (Misc queries) 0 December 3rd 07 07:54 PM
userform problem TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 August 10th 06 04:43 AM
UserForm Recall Problem Andy Tallent Excel Discussion (Misc queries) 1 April 15th 05 06:14 PM
Userform Problem Todd Huttenstine Excel Programming 2 February 15th 04 09:54 PM


All times are GMT +1. The time now is 05:31 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"