LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation Error Message stuck


Hey guys,

Ran into some weird thing today. Or maybe it's just weird because I'm
not an VBA whiz.. :)

I tried to enter a validation rule for a range in VBA that looked like
this (got it straight for VBA Help content):

With Range("e5").Validation
..Add Type:=xlValidateWholeNumber, _
AlertStyle:= xlValidAlertStop, _
Operator:=xlBetween, Formula1:="5", Formula2:="10"
..InputTitle = "Integers"
..ErrorTitle = "Integers"
..InputMessage = "Enter an integer from five to ten"
..ErrorMessage = "You must enter a number from five to ten"
End With

I only modified the range to resemble my named range and that's it
(just did it to see how it works at first). After I saw it did work, I
wanted to customize the validation function - i.e. the minimum and
maximum values and the message to be displayed and so on. Now here's
what I do not understand: no matter how I modify the validation
function, it's stuck as I saved it in the first place. So even if I
change the messages or change the numbers, Excel still uses the first
validation I entered for that range. I even commented and after that
deleted the code. Weird enough, even with the code deleted, the
validation was still in place...

Any thoughs?

Thanks for any ideas.

m


--
nowonda
------------------------------------------------------------------------
nowonda's Profile: http://www.excelforum.com/member.php...o&userid=31089
View this thread: http://www.excelforum.com/showthread...hreadid=507594

 
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
Data validation error message pkeegs Excel Discussion (Misc queries) 3 July 17th 08 02:17 AM
Error message when trying data validation Cam1234 Excel Discussion (Misc queries) 3 April 1st 08 11:28 PM
Data Validation Error Message BillCPA Excel Discussion (Misc queries) 1 March 17th 08 01:22 PM
Data Validation error message Peggy Excel Worksheet Functions 1 January 30th 08 04:28 PM
Error Message with Data Validation Chet Hurd Excel Discussion (Misc queries) 2 June 9th 05 08:44 PM


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