Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Could somebody please help me out of my frustrated state !!
I have an input box that gives me myValue, i then want to look for that value in a range on another sheet and if found carry on with the code, if not error msg. Les Stout *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Sub test() Dim FindString As String FindString = InputBox("Enter a Search value") If Application.WorksheetFunction.CountIf(Sheets("Shee t2") _ .Range("A1:A100"), FindString) 0 Then MsgBox "your code" Else MsgBox "findstring is not in the range" End If End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Tempy" wrote in message ... Could somebody please help me out of my frustrated state !! I have an input box that gives me myValue, i then want to look for that value in a range on another sheet and if found carry on with the code, if not error msg. Les Stout *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One day i'll also be big !!
Thanks Ron, saved my life again. Les Stout *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Continue Quote | Setting up and Configuration of Excel | |||
Continue equation | Excel Discussion (Misc queries) | |||
to continue down in the same row | Excel Discussion (Misc queries) | |||
Abort or continue | Excel Programming | |||
Abort or continue | Excel Programming |