Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
HI, I have created several named areas in an Excel SpreadSheet, my cuestion
is, in VBA programming how can I make reference to these diferent areas in a dinamic way. Let say I have a worksheet whith several concepts repeated several times, each concept is a named area. example Salary 1500 Groceries 200 movies 30 Groceries 50 my question is how can I in VBA read Salary and add 1500 to the named area Salary, and after Groceries, movies, etc. If somebody can help me I would appreciated. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set r = cells(rows.count,1).End(xlup)(2)
r.value = "Groceries" r.offset(0,1).Value = 1500 or another interpretation: set r = cells(rows.count,1).End(xlup)(2) r.value = "Groceries" r.offset(0,1).Value = application.sumif(Range(Cells(1,1), _ rng),"Groceries",Range(cells(1,1),rng).offset(0,1) ) + 1500 -- Regards, Tom Ogilvy "Orlando" wrote: HI, I have created several named areas in an Excel SpreadSheet, my cuestion is, in VBA programming how can I make reference to these diferent areas in a dinamic way. Let say I have a worksheet whith several concepts repeated several times, each concept is a named area. example Salary 1500 Groceries 200 movies 30 Groceries 50 my question is how can I in VBA read Salary and add 1500 to the named area Salary, and after Groceries, movies, etc. If somebody can help me I would appreciated. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy contents of a named range to a section on working area | Excel Discussion (Misc queries) | |||
Excel2000:How to link Print Area with a named range | Excel Discussion (Misc queries) | |||
Excel2000:How to link Print Area with a named range | Excel Worksheet Functions | |||
How to reference a named area | Excel Programming | |||
Fill a combo box from a named area on a sheet | Excel Programming |