Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Range("A1:B3").Name = "myRange" will give you myRange visible in the names dialog box. regards Paul On Mar 24, 3:35*pm, Bongard wrote: 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating Named Ranges with VBA | Excel Programming | |||
Creating ranges | Excel Programming | |||
Creating a Range from two specified Ranges | Excel Programming | |||
Creating Ranges | Excel Programming | |||
Creating Named Ranges in VBA | Excel Programming |