Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I use a Macro to define a Named Range

I have a spread sheet in which I have to continually update a named range.
The number of columns is static and the number of rows grow with new
information every day. The named range includes columns A thourgh CX. There
my not always be an entry in Column A. The first Column where there will
always be information is column B. How do I use a macro to do this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default How do I use a Macro to define a Named Range

Roedd <<EKUFan wedi ysgrifennu:

I have a spread sheet in which I have to continually update a named
range. The number of columns is static and the number of rows grow
with new information every day. The named range includes columns A
thourgh CX. There my not always be an entry in Column A. The first
Column where there will always be information is column B. How do I
use a macro to do this.


No macro required. Assuming your sheet is called Sheet1, Create a name
referring to the function
=Sheet1!$A$1:OFFSET(Sheet1!$B$1,COUNTA(Sheet1!$B:$ B)-1,100)

This range will expand as rows are added.

Rob


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 have a cell value define a dynamic named range? CellShocked Excel Worksheet Functions 15 October 26th 11 02:08 AM
Define Named Range Abdul[_2_] Excel Programming 1 August 30th 06 06:11 PM
How to define a relative named range in VBA John Broderick Excel Programming 10 December 24th 05 03:03 PM
How to define a Named Range in VBA? Richard Excel Programming 3 December 12th 05 06:49 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM


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