LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Macro to define range names

I was hoping for something not so labor intensive but I did end up using your
suggestion. Thanks

john wrote:
without knowing all your ranges tad difficult. But as an idea, I turned macro
recorder on and added your example and got this:

Sub Macro1()

ActiveWorkbook.Names.Add Name:="Week_1_2009", RefersToR1C1:= _
"= Sheet1!R4C2:R7C2"

End Sub

if you copy & paste the code bit as many times as needed & updated the range
reference as required - you would then only need to run macro once to add all
the names.

Just an idea - hope helpful

I have a list of dates associated with Week Nbrs starting in column B, C & D.
Several formulas link to a summary table on another worksheet which counts

[quoted text clipped - 16 lines]
1/6/2009 2009 2
1


--
Message posted via http://www.officekb.com

 
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
Define Range Names in Excel 2003-SP2 Ian Excel Discussion (Misc queries) 1 October 27th 09 06:48 PM
define max in range (macro) Steve Excel Discussion (Misc queries) 3 January 7th 09 01:55 AM
How do I use a Macro to define a Named Range EKUFan Excel Programming 1 September 16th 06 05:15 PM
how to define range names anton New Users to Excel 1 October 14th 05 08:28 AM
Macro to Define Range Name Phil Excel Programming 6 October 23rd 03 04:00 PM


All times are GMT +1. The time now is 04:58 PM.

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"