Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default textbox problem

I have a text box that cant have the values 1 , 159, 162, 163, 165, 166,
168, 169 or anything above 170

I have written a code which changes the number into a red number if it is
wrong but the problem is when it checks the next number in the series it
converts the error back to black.

is there a way to get it to check for all of the numbers in one swoop
here is the code using the recorder but i need to change it to suit
d1.textbox
"=IF(OR(d1.value=1,d1.value=159,d1.value=162,d1.va lue=163,Rd1.value=165,Rd1.value=166,d1.value=168,d 1.value=169,d1.value170),""yes"",""no"")"
Thanks


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
Textbox problem mondolfo Excel Programming 2 May 23rd 06 05:41 PM
Textbox Problem toocold[_21_] Excel Programming 4 April 18th 06 04:01 PM
Textbox problem Robert Couchman[_4_] Excel Programming 11 February 26th 04 02:01 PM
Textbox adding problem Todd Huttenstine[_3_] Excel Programming 11 February 10th 04 09:51 AM
Problem with TextBox & ControlSource - Please Help [email protected] Excel Programming 8 January 14th 04 06:45 AM


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