Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to detect Internet connection

Sir,
I am automating our daily report to be sent by email thru excel VBA.
I have the code and is working fine. The only problem is with internet
connection. If the connection is not available when the macro runs, the
macro simply fails.
Is there any way, by which I can detect programmatically, if internet
connection is available or not? If I can detect it, I can simply put it
in a loop and send the mail when it is available. With this final step,
I can completly eliminate any human interaction to get reports.

Any directiopns will be appreciated.
Regards,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to detect Internet connection

Hi Amedee,
Thanks for your response.
I got what I want.

I seen some surprise in your post.
Note: The author of this message requested that it not be archived.

This message will be removed from Groups in 6 days (Apr 18, 7:36 am).

I have never requested to remove my post or not to archive. Then why
this message?

Moreover, I have read about headers of the message posted over here.
Looking at message headers will tell you lot of things etc etc.
What is it? I am using browser to read and post messages. Is it
possible to see headers with browser? What informations are available
in these mysterious headers and where exactly these headers are
located? What is the way or URL of headers?
I hope I am not boaring you with my funny/foolish questions. Infact it
is only my curiosity to know. Thats all.

THANK YOU ONCE AGAIN.
Have a nice day.



Amedee Van Gasse wrote:
shared this with us in
microsoft.public.excel.programming:

Sir,
I am automating our daily report to be sent by email thru excel

VBA.
I have the code and is working fine. The only problem is with

internet
connection. If the connection is not available when the macro runs,
the macro simply fails.
Is there any way, by which I can detect programmatically, if

internet
connection is available or not? If I can detect it, I can simply

put
it in a loop and send the mail when it is available. With this

final
step, I can completly eliminate any human interaction to get

reports.

Any directiopns will be appreciated.
Regards,


Google is your friend!
http://www.google.com/search?q=vba+c...net+connection
The first link gives you exactly what you need:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=313
This one may also work:
http://www.developerfusion.com/show/3903/

--
Amedee Van Gasse using XanaNews 1.17.3.1
If it has an "X" in the name, it must be Linux?

How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Only ask questions with yes/no answers if you want "yes" or "no" as

the
answer.

http://homepages.tesco.net/~J.deBoyn...-with-yes-or-n
o-answers.html


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
Internet connection stuenov Excel Discussion (Misc queries) 0 February 22nd 09 07:25 PM
Internet connection stuenov Excel Discussion (Misc queries) 0 February 18th 09 03:52 PM
Internet Connection Issue [email protected] Excel Programming 1 January 7th 05 08:49 PM
Internet Connection Web_Builder[_2_] Excel Programming 2 August 11th 04 01:07 AM
Internet connection? Francis Ang Excel Programming 3 May 31st 04 04:01 AM


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