Jim Jackson
12/12/2006 10:03:00 PM
If I am not terribly off-course, the ".Names" is assigning the address.
Will it work if you substitute ".Range" for ".Names"?
--
Best wishes,
Jim
"ksgoodwin@gmail.com" wrote:
> I am trying to access the value in a single cell that is a named range.
>
> Code:
>
> If Workbooks(Current).Names("UpDate_File_Name1").Value = "Save to" then
> ....
>
> When I debug the .Value I get the cell address not the cell value; in
> this case:
>
> =Setup!$C$3 instead of "Save to" which is the value in the cell.
>
> I can do:
>
> If Activeworkbook.Worksheets("Setup").cells(3,3).value = "Save to"
> then...
>
> or
>
> If Workbooks(Current).Worksheets("Setup").Cells(3, 3).Value = "Save to"
> then...
>
> and get the Value to be: "Save to"
>
> I would like to use Named ranges in the VBA code.
>
> Ken
>
>