Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Rollover Define Name

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Rollover Define Name

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Rollover Define Name

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rollover number help Nathanael Excel Discussion (Misc queries) 2 January 22nd 09 01:40 PM
Mouse rollover pop-up message rhemingway Excel Worksheet Functions 6 March 11th 08 03:50 PM
Excel Project rollover for 2006 P. Hayes Excel Worksheet Functions 0 January 5th 06 08:27 PM
rollover choice[_2_] Excel Programming 3 March 20th 05 05:43 PM
RollOver buttons in UserForms (A solution) Pierre Archambault Excel Programming 2 July 9th 03 04:07 PM


All times are GMT +1. The time now is 09:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"