LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Help with VBA

Hello Jason,

Thanks for using Microsoft Newsgroup Support Service, my name is Colbert
Zhou [MSFT] and I will be working on this issue with you.

Maury's codes are almost right and just need a little modification. Thanks
to Maury's input here.

We need to change the line
If IsEmpty(Email) then GoTo TRYNEXTROW ' ALWAYS do this!
to,
If IsEmpty(Cells(r, 2)) then GoTo TRYNEXTROW ' ALWAYS do this!

IsEmpty function is used to test if a cell is empty, not the cell's value.
So in this case, even if a cell is empty, the original codes IsEmpty(Email)
returns false. As a result the Recipients.Add() will throw an exception
because the parameter is an "" string.

Please replace Email with Cells(r,2) and test again. It should work.

At last, some clarification about the Outlook Express. The Express version
of Outlook does not expose as COM Server, so it cannot be automated. That
is to say, to run the above codes, we need the Office Outlook installed on
that machine.

Please let me know if you have any future questions or concerns on this.
And I will try my best to provide future help. Have a nice day, all!

Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
.



 
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



All times are GMT +1. The time now is 06:15 PM.

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"