Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I had this code
ActiveWorkbook.Names.Add Name:="OBM", RefersToR1C1:="=Densities!R4C6:R139C6" But needed it to refer to the active cells for that i did ActiveWorkbook.Names.Add Name:="OBM", RefersToR1C1:=Selection.Address Which seemed to work fine BUT it only names the cell range, and not the work book so i cant use the defined range anywhere else I have tried MyList = Selection.Address ActiveWorkbook.Names.Add Name:="OBM", RefersTo:="=Densities!" & MyList but this still only uses the cell range and not the work book Please Help me Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Refers to active cells | Excel Programming | |||
macro than refers to a cell? | Excel Discussion (Misc queries) | |||
API to find position of active cell no longer working in 2007. | Excel Programming | |||
Cell has a value of #N/A when the formula refers to nothing | Excel Programming | |||
Macro execution refers not to the active sheet/excel file | Excel Programming |