Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi ,
I would like to add one, to the column of an original defined name, so as to move the defined cell along one space, using the ActiveWorkbook.Names.Add function. I'm trying to create a variable to get the original cell reference and then just add one to the column reference, using the function above. How do I do this? Kind regards and thanks in advance Jeff |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set rng = ActiveWorkbook.Names("MyName").RefersToRange
' now expand by one column rng.Resize(,rng.columns.count+1).Name = "MyName" 'if you want to move the range over 1 columns set rng = ActiveWorkbook.Names("MyName").RefersToRange rng.offset(0,1).Name = "MyName" -- Regards, Tom Ogilvy "Mr Cockles" wrote in message ... Hi , I would like to add one, to the column of an original defined name, so as to move the defined cell along one space, using the ActiveWorkbook.Names.Add function. I'm trying to create a variable to get the original cell reference and then just add one to the column reference, using the function above. How do I do this? Kind regards and thanks in advance Jeff |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you Tom. I'll have a try with this.
"Tom Ogilvy" wrote: set rng = ActiveWorkbook.Names("MyName").RefersToRange ' now expand by one column rng.Resize(,rng.columns.count+1).Name = "MyName" 'if you want to move the range over 1 columns set rng = ActiveWorkbook.Names("MyName").RefersToRange rng.offset(0,1).Name = "MyName" -- Regards, Tom Ogilvy "Mr Cockles" wrote in message ... Hi , I would like to add one, to the column of an original defined name, so as to move the defined cell along one space, using the ActiveWorkbook.Names.Add function. I'm trying to create a variable to get the original cell reference and then just add one to the column reference, using the function above. How do I do this? Kind regards and thanks in advance Jeff |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
rollover number help | Excel Discussion (Misc queries) | |||
Mouse rollover pop-up message | Excel Worksheet Functions | |||
Excel Project rollover for 2006 | Excel Worksheet Functions | |||
rollover | Excel Programming | |||
RollOver buttons in UserForms (A solution) | Excel Programming |