View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Patrick Molloy[_2_] Patrick Molloy[_2_] is offline
external usenet poster
 
Posts: 1,298
Default Creating range name based on cell value.

use the INDIRECT() function

Activesheet.Range("A1").Name = "Vehicle" &
worksheets("Summary").Range("TempNumber").Value



"jeff" wrote:

Sheet named €śSummary€ť contains a range name €śTempNumber€ť.

I need a macro that will, within the current sheet, go to cell A1. It
will look at the range TempNumber and name the range (of cell A1) a
combination of the word €śVehicle€ť plus the value in TempNumber.

Example: The value in range TempNumber is "Test1".
This macro will cause Cell A1 of whatever the current sheet is to be
named €śVehicle Test1€ť
This will be used in different sheets, so I need it to do this in
whatever the Current Sheet is.

Thanks
j.o.