Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Finding data in a Range / Returning Cell Location

I have set a Range in Worksheet2 called Master_Rate. From
within my VBA code I need to be able to locate the cell in
that range that contains a specific value and then return
the cell reference.

I have tried using the Find Method but am not gettng the
results I expected.

Thanks for any help

Betsy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Finding data in a Range / Returning Cell Location

Post your code and indicate what happens when you run it.

Alan Beban

Betsy Jones wrote:
I have set a Range in Worksheet2 called Master_Rate. From
within my VBA code I need to be able to locate the cell in
that range that contains a specific value and then return
the cell reference.

I have tried using the Find Method but am not gettng the
results I expected.

Thanks for any help

Betsy


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Finding data in a Range / Returning Cell Location



Here is the code:

Function Find_Min_Rate()
Dim Cell As Range
WS2.Activate
Set Cell = Range("Master_Rates").Find(what:=MinRate, LookIn:=xlValues)
Cell.Select
MsgBox "Cell address is " & Cell.Address(RowAbsolute:=False,
ColumnAbsolute:=False)

End Function

It was 'sort of' working for a while. My range contains the values 6.000
thru 8.000 in increments of .125. If I searched for 6.125, I could
locate the cell. If I searched for searched for 7 it would find 6.750. I
think I can work around that (though I will take any suggestions.

HOWEVER - Some gremlin seems to have invaded by computer. Now it doesn't
seem to find a match whatever I do?

HELP.

Betsy

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Finding specific text in one cell and returning data from another Klee Excel Worksheet Functions 8 April 2nd 09 08:49 PM
Finding a cell location Lucask New Users to Excel 3 February 26th 09 01:14 PM
finding the data location of a list in my xls xlsstudent Excel Discussion (Misc queries) 3 May 24th 07 06:16 PM
finding cell location Jshendel Excel Discussion (Misc queries) 5 August 30th 06 10:02 PM
Finding, and returning data. Marcus New Users to Excel 1 June 3rd 05 07:48 PM


All times are GMT +1. The time now is 11:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"