Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the user enter the string they need to find, and then i run
find to find it. Code ------------------- Public Sub Clean(Manu As String) Dim FinalRow as Long FinalRow = Range("I65536").End(xlUp).Row If Len(Manu) 0 Then With Range("A1", "I" & FinalRow) .Select .Sort Range("D1"), xlAscending, Range("E1") .Find Manu End With End If ------------------- For some reason that doesn't want to allow me to search. One of th things im trying to search for is Steel. So I run this, manu get Steel, and nothing. So I do a find from within Excel and search fo Steel and it works. Does VBA give excel the string in ""s or is something else happening? I have been trying to work around this for quite a while now and i can get anythign to work. Thanks for the help Cor -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Well i figured it out myself. I realized that i forgot to do
.Activate after the find statement so even though it found it, I di not see it. Sorry for the wasted pos -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
An alternate input method? | Excel Discussion (Misc queries) | |||
Prompt user for input and utilize that input | Excel Worksheet Functions | |||
Have user input converted to uppercase in same cell as input? | New Users to Excel | |||
Export method question -- Spreadsheet ActiveX component on user form | Excel Programming | |||
CODE to select range based on User Input or Value of Input Field | Excel Programming |