Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #20  
Old 05-30-2018, 04:38 AM
slaycock slaycock is offline SENDKEYS with vbYesNoCancel and Select Case Windows 7 64bit SENDKEYS with vbYesNoCancel and Select Case Office 2016
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

Quote:
Ok, but can I ask why?
I suspect its the simple fact that in VBA handling errors is messy and not immune to user error.

I am embarrased to say I have wasted hours on a number of occasions trying to figure out why code was stopping and highlighting an error when using an on error statement.

In each case it was because I'd been debugging something else previously and had left the IDE error trapping option set to 'Break on all errors' .

Your point about the length of time the loop could take is quite valid and if this was a problem then I'd probably resort to investigating an alternative method such as the one you suggest.

PS I read up on the tag property for forms. Its interesting the neither of the two books I have on VBA programming mention this at all. I can see its value but my preference is to use a specific and well named property. In this case, on reflection, I would probably change the result property name to ValidatedOK, but that a personal preference.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Case and Select case brent chadwick Word VBA 34 10-18-2015 02:13 PM
Replace & case Jennifer Murphy Word 1 02-11-2013 03:26 AM
SENDKEYS with vbYesNoCancel and Select Case A macro that can insert FILENAME, sendkeys CTRL ALT T, paste clipboard, and nextline kyjac85 Word VBA 13 09-20-2012 05:00 PM
Problem with the sendkeys in Win7 vidyapakki Excel Programming 1 05-07-2012 11:10 PM
SENDKEYS with vbYesNoCancel and Select Case From all UPPER CASE to Proper Case davers Word 1 04-30-2009 12:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft