Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default catching cancel on QueryTable.Refresh

I am trying to write some code that will update a file DSN based ODBC query.
This prompts me for my username, password and datapath. However, if I click
cancelin the dialog box it just continues with the rest of the code. I want
it to alert me that Ithe operation has been cancelled and then end the code.
I have tried using err.number but it gives the same as if I confirm correct
details - no good.

Also by code it gives a second chance for entering the details before
causing an error - is there a way to catch this so it only checks once?

Many thanks
Tysop
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
Repost: Update querytable connections and refresh data Dale Fye Excel Discussion (Misc queries) 2 January 7th 08 05:34 PM
Update querytable connections and refresh data Dale Fye Excel Discussion (Misc queries) 0 November 2nd 07 03:46 PM
Update querytable connections and refresh data Dale Fye Charts and Charting in Excel 0 November 2nd 07 03:46 PM
Cancel QueryTables.Refresh Process After 10 Seconds MCP Excel Programming 0 September 2nd 05 07:02 PM
cancel query refresh - vb paddy Excel Programming 0 August 7th 03 02:17 AM


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