If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > change in range for namebox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-06, 04:08
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
change in range for namebox

Hi all,

I wish to know if there is a way to change the range for a defined namebox,
for eg. my namebox1 is set to have range from A1:A10, now i need to reset it to A1:A20, is that possible?

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-13-06, 08:34
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I feel sure it is, but what is a namebox ?

MTB
Reply With Quote
  #3 (permalink)  
Old 07-14-06, 01:14
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
Not clear on your requirement. Is a namebox a defined name? Then
Code:
Range("A1:A20").Name = "namebox1"
Reply With Quote
  #4 (permalink)  
Old 07-17-06, 04:01
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
Oh...sorry, i should have explain more, namebox is the text box on top of column A (at the top left corner), if you select some range of cells, then put a name there, then next time excel will link the name to that particular range that your have selected, however, so far i never find a way to edit the range, i can only create it. but dont know how to edit nor delete.

Usually i seldom use this name box, is just that the previous programmer has use this name box which a lot of function use the namebox, in order to modify the functions one by one, i hope i can edit the range of the namebox.
Reply With Quote
  #5 (permalink)  
Old 07-17-06, 08:03
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi again

Now we know what youe are talking about ...

As Fazza indicated, if you are using code then
Range("A1:A20").Name = "namebox1"
will do it.

If you are working in/on the sheet then try

Insert -> Name -> Define

on the menus and select/specify the name and range you require !

HTH

MTB
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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