Creating Ranges
You can add it to an individual sheet or to the workbook as a whole using
one of these constructions...
Worksheets(Sheet1).Names.Add "YourNameForTheRange", "=Sheet1!$C$3:$F$6"
ThisWorkbook.Names.Add "YourNameForTheRange", "=Sheet1!$C$3:$F$6"
The absolute cell references are important.
--
Rick (MVP - Excel)
"Bongard" wrote in message
...
Can you create a Range in VBA that is available to be referenced in
spreadsheet formulas? In other words, can you create a range in VBA
that shows up when you click Insert - Name - Define?
Thanks,
Brian
|