Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Find - 2 possible things to find

I am using VBA to find a specific value. The problem is that humans
have not used the standad form and have changed the thing that I want
found. I want to find "1st Converting run" or "1st. Converting Run".
Notice the period behind the 1st
I want to note the address of either of these finds.
Thanks,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Find - 2 possible things to find

Hi Jay !! :)
...so you find twice once for each of the two slighyly
different strings !

"jlclyde" wrote:

I am using VBA to find a specific value. The problem is that humans
have not used the standad form and have changed the thing that I want
found. I want to find "1st Converting run" or "1st. Converting Run".
Notice the period behind the 1st
I want to note the address of either of these finds.
Thanks,
Jay

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Find - 2 possible things to find

On my worksheet, F12 has: 1st Converting run (no period)
F13 has: 1st. Converting run (with the period)
The sub below displays OK for each cell

Sub testit2()
mytest = "1st Converting run"
For Each mycell In Range("F12:F13")
If WorksheetFunction.Substitute(mycell, ".", "") = mytest Then
MsgBox "OK"
Else
MsgBox "No match"
End If
Next
End Sub

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"jlclyde" wrote in message
...
I am using VBA to find a specific value. The problem is that humans
have not used the standad form and have changed the thing that I want
found. I want to find "1st Converting run" or "1st. Converting Run".
Notice the period behind the 1st
I want to note the address of either of these finds.
Thanks,
Jay



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default Find - 2 possible things to find

On Dec 4, 8:08*am, Vijay Chary
wrote:
Hi Jay !! :)
* * * * * * * * * *...so you find twice once for each of the two slighyly
different strings !



"jlclyde" wrote:
I am using VBA to find a specific value. *The problem is that humans
have not used the standad form and have changed the thing that I want
found. *I want to find "1st Converting run" or "1st. Converting Run".
Notice the period behind the 1st
I want to note the address of either of these finds.
Thanks,
Jay- Hide quoted text -


- Show quoted text -


I want to find the address of which ever one is present and not bug
out or throw an error. Both will never be present in the same sheet.
Thanks,
Jay
Reply
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
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
'find' somtimes can't find numbers. I folowd the 'help' instructi. Yaron Excel Worksheet Functions 2 November 30th 05 05:46 PM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM


All times are GMT +1. The time now is 05:51 PM.

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"