Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation button using VBA

Hello everyone! You guys helped me out of a huge jam a few weeks ago
and I was hoping you could help me out on this less critical add-on
would like to do for my companies spreadsheets.
We have lets say 3 columns - (city, state, zip). I would like to creat
a button that called <Validate that a user can click to ensure tha
the data entered matches the validations in the cells. And if i
doesnt, I want the macro to highlight the cell that does not conform t
the validation in red. I have seen this done before, I was hopin
someone could assist.


Ex: Validation set in state column is 2 chars - however someone type
out the whole state, when this button is pushed it will highlight tha
state in red so the user knows its in error.


Thank you so much ahead of time

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Validation button using VBA

What are the rules on City and zip? Is there a list of values for state?

Either way, Data Validation ism probably what you want.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rmeffert " wrote in message
...
Hello everyone! You guys helped me out of a huge jam a few weeks ago,
and I was hoping you could help me out on this less critical add-on I
would like to do for my companies spreadsheets.
We have lets say 3 columns - (city, state, zip). I would like to create
a button that called <Validate that a user can click to ensure that
the data entered matches the validations in the cells. And if it
doesnt, I want the macro to highlight the cell that does not conform to
the validation in red. I have seen this done before, I was hoping
someone could assist.


Ex: Validation set in state column is 2 chars - however someone types
out the whole state, when this button is pushed it will highlight that
state in red so the user knows its in error.


Thank you so much ahead of time!


---
Message posted from http://www.ExcelForum.com/



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
Why the data validation button is greyed out when it is in trackchange mode in Excel 2007 [email protected] Excel Discussion (Misc queries) 0 May 16th 08 02:52 AM
Why the data validation button is greyed out when it is in trackchange mode in Excel 2007 [email protected] Excel Discussion (Misc queries) 0 May 16th 08 02:52 AM
How do I lock a radio button group if a N/A button is selected worry a lot Excel Discussion (Misc queries) 2 May 21st 05 08:33 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM
Field validation via control button? ExcelNoviceGuy Excel Programming 2 October 10th 03 02:05 AM


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