LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Find method using User input

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

 
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
An alternate input method? TheMilkGuy Excel Discussion (Misc queries) 6 November 26th 08 07:12 AM
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
Export method question -- Spreadsheet ActiveX component on user form PatFinegan Excel Programming 1 January 8th 04 02:35 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 06:15 AM.

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"