Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
am new to VB, but have progrmmed before. could not find 'find' in vb and
tried to use worksheet function following examples in VB help. am trying to get one cell to work before I attack b1:bnnn range. each row in the worksheet one stop on a delivery route. there will be one more test on same row, column D, if delcode is valid. got run time error 1004. 'unable to get find property of the worksheet function class' Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim position As Integer Dim delcode, validcodetable As String validcodetable = " 3 4 5 s/s SO <<" msg1 = "Fix delivery code; blank, 3, 4, 5, s/s, SO, < are OK." delcode = Trim(Range("b5")) ' this next statement is getting the error position = Application.WorksheetFunction.Find(delcode, validcodetable, 1) If position < 1 Then MsgBox msg1, , "Column B" End Sub this is all the code, don't know how to proceed. Thanks. Neal Z -- Neal Z |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find text - worksheet function or macro? | Excel Discussion (Misc queries) | |||
Find last non-blank row with a worksheet function | Excel Worksheet Functions | |||
Worksheet Function - Find? | Excel Worksheet Functions | |||
for stats worksheet in XL how do i find the minitab function | Excel Worksheet Functions | |||
Using Worksheet Function Find in VBA | Excel Programming |