Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
In my VBA I rever to various names (the ones returning a value) in my workbook, like: Var1=[Name1] It works nicely, except when the name definition contains function ROW() (maybe there are other behaving similarily - I myself suspect COLUMN()). The problematic name is something like: HeaderCnt=ROW(SheetName!$A$2) (It's needed to adjust automatically formulas and procedures, when some rows are added to/removed from table header) VarHeaderCnt=[HeaderCnt] returns an 1-dimension object instead of value. To get the value, I have to use the code: VarHeaderCnt=[HeaderCnt] VarHeaderCnt=VarHeaderCnt(1) (NB! [HeaderCnt](1) doesn't work - it returns an error 'Wrong number of arguments or invalid property assignment'.) Can someone explain me this? Thanks in advance! -- Arvi Laanemets (When sending e-mail, use address arvil<Attarkon.ee) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Shortcut key strange behaviour | Excel Worksheet Functions | |||
Strange if(***) behaviour? | Excel Discussion (Misc queries) | |||
Strange behaviour | Excel Worksheet Functions | |||
Strange behaviour in VBA Help | Excel Programming | |||
strange behaviour | Excel Programming |