PC Review


Reply
Thread Tools Rate Thread

Can you query status of data connections?

 
 
Invicta
Guest
Posts: n/a
 
      12th Dec 2008
Hi

Is it possible to determine if data connections are disabled or not in Excel
2007 VBA?

E.g. if I run this VBA

ActiveWorkbook.Worksheets("sheet1").Range("B2").QueryTable.Refresh
BackgroundQuery:=False

Err.number is always 0 even if data connections are disabled. I would like
to check and prompt a warning message if the data connectios are disabled.

Many thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Refresh Status of External Data Query Mark Microsoft Excel Programming 0 15th Mar 2009 09:41 PM
status of internet connections not working =?Utf-8?B?YXJpZXM=?= Windows XP General 0 14th Jun 2007 03:04 PM
My internet connection status will not show on the network connections window Guy Smith Windows XP Networking 1 14th Feb 2007 04:05 PM
Resetting unreachable status for dial-up connections Dennis Lindqvist Microsoft Windows 2000 RAS Routing 5 4th Mar 2005 09:40 AM
Status Bar Updating and SQL Connections =?Utf-8?B?TWF4IFR1cmF2YW5p?= Microsoft Dot NET Framework Forms 5 11th Feb 2005 04:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.