Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Error trap X 2

Hi OssieMac,

Thanks for your help. The problem was that the error did not want to reset.
I used Err.Clear and thought that would fix it.

I found an example which allowed me to use a Set Statement and Find, which
changed the code completely. Thank you for your time and efforts.

Thanks,
--
David


"OssieMac" wrote:

Hi again David,

If attempting to test the code I posted then change the Find code to following

myDateToFind = DateValue _
(Application.InputBox _
(Prompt:=myPrompt, _
Title:="Date entry.", _
Type:=2))

Initially I had myDateToFind dimensioned as a date and changed it to variant
for the cancel and then vba does not like it.


--
Regards,

OssieMac


"David" wrote:

Hi Group,

I am trapping an error:
On Error GoTo DateChange:

The Error occurs when I am searching for a date which is part of a
"QueryTables".
It works fine when the error only occurs 1 time and in the DateChange:(The
error trapping rountine) I am trying several things:
Err.Clear
On Error GoTo DateChange:

I was hoping this would clear the error and retrap when it occurs again, but
this all fails. Any ideas that allow it to continue to trap the errors would
be appreciated.

Thanks,
--
David

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
Set Error handling INSIDE error-trap Michelle Excel Programming 6 May 3rd 08 03:30 PM
Need error trap GregR Excel Programming 4 June 14th 07 08:28 PM
Error Handling - On Error GoTo doesn't trap error successfully David Excel Programming 9 February 16th 06 05:59 PM
Error Trap Kirk P. Excel Programming 2 September 8th 05 09:51 PM
error trap Rhonda[_3_] Excel Programming 2 October 22nd 03 07:07 PM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"