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

on sheet 2 cell J6 i have the text B7 and in J7 i have
the text L10. i need a macro to name range("B7:L10")
with the text that is in cell J8. J8's text
is "RangeName" i want it to name the range that the text
in the two cells specifies, because the value in cells J6
and J7 will change periodically, i just don't want to
have to keep re naming a bunch of ranges every month. TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Name a range

Do
insert=Name

Name: RangeName
RefersTo: =INDIRECT(Sheet1!$J$6&":"&Sheet1!$J$7)

If you change the values in J6 and/or J7, the definition of RangeName will
be changed as well.

Regards,
Tom Ogilvy


spence wrote in message
...
on sheet 2 cell J6 i have the text B7 and in J7 i have
the text L10. i need a macro to name range("B7:L10")
with the text that is in cell J8. J8's text
is "RangeName" i want it to name the range that the text
in the two cells specifies, because the value in cells J6
and J7 will change periodically, i just don't want to
have to keep re naming a bunch of ranges every month. TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Name a range

i have this in A1 'Sheet1'!B7:L10 when i Do
insert=Name=define
select the name from the list (that already exists as a
cell reference) i typed, =INDIRECT('Sheet1'!A1) and it
doesn't work.
-----Original Message-----
Do
insert=Name

Name: RangeName
RefersTo: =INDIRECT(Sheet1!$J$6&":"&Sheet1!$J$7)

If you change the values in J6 and/or J7, the definition

of RangeName will
be changed as well.

Regards,
Tom Ogilvy


spence wrote in message
...
on sheet 2 cell J6 i have the text B7 and in J7 i have
the text L10. i need a macro to name range("B7:L10")
with the text that is in cell J8. J8's text
is "RangeName" i want it to name the range that the

text
in the two cells specifies, because the value in cells

J6
and J7 will change periodically, i just don't want to
have to keep re naming a bunch of ranges every month.

TIA


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Name a range

In A1 on sheet1 put

Sheet1!B7:L10 (no single quotes)

Insert=Name=define

Name: RangeName
RefersTo: =Indirect(Sheet1!$A$1)

include the dollar signs, no single quotes.

Works for me.

Regards,
Tom Ogilvy


spence wrote in message
...
i have this in A1 'Sheet1'!B7:L10 when i Do
insert=Name=define
select the name from the list (that already exists as a
cell reference) i typed, =INDIRECT('Sheet1'!A1) and it
doesn't work.
-----Original Message-----
Do
insert=Name

Name: RangeName
RefersTo: =INDIRECT(Sheet1!$J$6&":"&Sheet1!$J$7)

If you change the values in J6 and/or J7, the definition

of RangeName will
be changed as well.

Regards,
Tom Ogilvy


spence wrote in message
...
on sheet 2 cell J6 i have the text B7 and in J7 i have
the text L10. i need a macro to name range("B7:L10")
with the text that is in cell J8. J8's text
is "RangeName" i want it to name the range that the

text
in the two cells specifies, because the value in cells

J6
and J7 will change periodically, i just don't want to
have to keep re naming a bunch of ranges every month.

TIA


.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Name a range

my mistake on the last post, the ROR formula wasn't an
array
-----Original Message-----
In A1 on sheet1 put

Sheet1!B7:L10 (no single quotes)

Insert=Name=define

Name: RangeName
RefersTo: =Indirect(Sheet1!$A$1)

include the dollar signs, no single quotes.

Works for me.

Regards,
Tom Ogilvy


spence wrote in message
...
i have this in A1 'Sheet1'!B7:L10 when i Do
insert=Name=define
select the name from the list (that already exists as a
cell reference) i typed, =INDIRECT('Sheet1'!A1) and it
doesn't work.
-----Original Message-----
Do
insert=Name

Name: RangeName
RefersTo: =INDIRECT(Sheet1!$J$6&":"&Sheet1!$J$7)

If you change the values in J6 and/or J7, the

definition
of RangeName will
be changed as well.

Regards,
Tom Ogilvy


spence wrote in message
...
on sheet 2 cell J6 i have the text B7 and in J7 i

have
the text L10. i need a macro to name range

("B7:L10")
with the text that is in cell J8. J8's text
is "RangeName" i want it to name the range that the

text
in the two cells specifies, because the value in

cells
J6
and J7 will change periodically, i just don't want

to
have to keep re naming a bunch of ranges every

month.
TIA


.



.



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
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
Cond. Format Data Bars of range based on values of another range alexmo Excel Worksheet Functions 4 January 16th 09 04:03 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


All times are GMT +1. The time now is 09:50 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"