#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Changing name ranges

I am using a workbook that contains hundreds of range names. I need to extend
all of the ranges so the ranges run to column BB instead of column AP as
they do now.

For example a named range is currently $M$255:$AP$255 and needs changing to
$M$255:$BB$255

Is their any way I can do the changes in one go instead of going through
Insert €“ Name €“ Define, and changing them all manually?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 140
Default Changing name ranges

you could put an offset formula as the range for the names range

=OFFSET(name of tab here!$m$255,0,0,COUNTA(name of tab here!$M:$M),COUNTA
(name of tab here($1:$1))



chillibean wrote:
I am using a workbook that contains hundreds of range names. I need to extend
all of the ranges so the ranges run to column BB instead of column AP as
they do now.

For example a named range is currently $M$255:$AP$255 and needs changing to
$M$255:$BB$255

Is their any way I can do the changes in one go instead of going through
Insert €“ Name €“ Define, and changing them all manually?


--
Matt Lynn

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200809/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Changing name ranges

How about:

Sub namextender()
For Each n In ActiveWorkbook.Names
n.RefersTo = Replace(n.RefersTo, "$AP$", "$BB$")
Next
End Sub
--
Gary''s Student - gsnu200804


"chillibean" wrote:

I am using a workbook that contains hundreds of range names. I need to extend
all of the ranges so the ranges run to column BB instead of column AP as
they do now.

For example a named range is currently $M$255:$AP$255 and needs changing to
$M$255:$BB$255

Is their any way I can do the changes in one go instead of going through
Insert €“ Name €“ Define, and changing them all manually?

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
Dynamically Changing Named Ranges [email protected] Excel Worksheet Functions 2 December 17th 07 08:04 PM
VLOOKUP, changing ranges Sarah Excel Discussion (Misc queries) 1 August 21st 07 07:38 PM
Changing named ranges Gazzr Excel Discussion (Misc queries) 3 May 22nd 06 07:44 AM
Dynamic chart: Changing Ranges Benihime Charts and Charting in Excel 2 April 28th 06 12:20 AM
CountIF and changing ranges dark Excel Worksheet Functions 3 October 2nd 05 06:17 AM


All times are GMT +1. The time now is 10:41 PM.

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

About Us

"It's about Microsoft Excel"