Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Public Function VerifyPW(Name As String) As Boolean
Dim rng As Range Dim Found As Range Set rng = Worksheets("Users").Columns("A:A") Set Found = rng.Find(What:="dan", MatchCase:=True) VerifyPW = Not (Found Is Nothing) End Function -----Original Message----- ok, so i've updated my code and now it looks like this Public Function VerifyPW(Name As String) As Boolean Dim rng As Range Dim Found As Range Set rng = Worksheets("Users").Columns("A:A") With rng Set Found = .Find(What:="dan", MatchCase:=True) End With VerifyPW = Not (Found Is Nothing) VerifyPW = True End Function if i explicitly state What as "dan", it will find it properly. However, if i try to use my Name variable, it won't work anymore. when I use my name variable, i use What:=Name. Do i need to put name inbetween some kind of characters, like quotes, to let it know that its a variable? --- Message posted from http://www.ExcelForum.com/ . |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find First Non blank cell than find column header and return that value | Excel Worksheet Functions | |||
where to put results of find operation in find and replace functio | Excel Worksheet Functions | |||
Despite data existing in Excel 2002 spreadsheet Find doesn't find | Excel Discussion (Misc queries) | |||
'find' somtimes can't find numbers. I folowd the 'help' instructi. | Excel Worksheet Functions | |||
backwards find function to find character in a string of text | Excel Programming |