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: 126
Default Refering to a particular cell in a Named Range

Change:

If Range("C5").Value = Locations(Cells(1)) Then ' <=== ???
'do stuff here
end if


TO:

If Range("C5").Value = Range("Locations")(1) Then
'do stuff here
end if

This will check to see if Sheet1.Range("C5") matches the first item in your
Locations list. If it matches, your 'do stuff' will execute.
"Corey ...." wrote:

I have a named range in sheet2 called "Locations"

In sheet 1 i use a validation dropdown list on required cells to list the
Location values.
I am trying to identify IF the value chosen was a particular item from the
"Locations" list.

"Locations" = Sheet2 A1-A12

I selected the first value in the list in the Validation List in Sheet1
(which is actally Sheet2 A1)

How can i capture the correct cell value chosen?
If Range("C5").Value = Locations(Cells(1)) Then ' <=== ???
'do stuff here
end if


Corey....



 
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
Can you name a worksheet by refering to a cell reference or range o2bing Excel Discussion (Misc queries) 10 March 21st 08 07:18 AM
Refering to a named range in a chart: 2007 fruitticher Excel Worksheet Functions 1 September 14th 07 06:52 PM
refering to a named range on a different worksheet [email protected] Excel Programming 2 October 10th 06 08:29 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
help in refering to a range named in a cell jf Excel Programming 1 January 20th 05 02:44 PM


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