LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Return of Cell Location

Try some code like

Dim R As Range
Set R = Range("C5:C10") '<<< CHANGE
Set R = R.Offset(Application.Match( _
Application.Min(R), R, 0) - 1, 0).Resize(1, 1)
Debug.Print R.Address

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)







On Thu, 3 Sep 2009 13:21:46 -0400, "William Wolfe"
wrote:

I am running VB code in Excel 2007. I execute a min function and now I want
to know what cell contained the min value.

How do I do this?

Thanks,

 
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
a formula that return the cell location in a range danpt Excel Discussion (Misc queries) 5 May 3rd 09 12:43 PM
How do I return the cell location aneuro Excel Discussion (Misc queries) 4 May 27th 07 01:09 PM
Return to original location Jim Excel Programming 2 April 2nd 07 03:26 PM
how do I return tthe location (cell) when using the max function Holke Excel Discussion (Misc queries) 6 March 11th 07 01:27 AM
Save a cell location and return to it Adam[_12_] Excel Programming 7 January 17th 06 08:41 AM


All times are GMT +1. The time now is 05:56 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"