Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel,microsoft.public.excel.programming
|
|||
|
|||
Defining Range
How do I define a range from sheet1!a2 to the last nonempty cell in the A
column The name of the range should be equal to sheet!a1 ( the top most cell ) similarly for other columns b, c, d, e |
#2
Posted to microsoft.public.excel,microsoft.public.excel.programming
|
|||
|
|||
Defining Range
With Worksheets("Sheet1")
set rng = .Range(.Range("A2"),.Cells(rows.count,1).End(xlup) ) End With similarly for b, c, d, e -- Regards, Tom Ogilvy "MAB" wrote in message ... How do I define a range from sheet1!a2 to the last nonempty cell in the A column The name of the range should be equal to sheet!a1 ( the top most cell ) similarly for other columns b, c, d, e |
#3
Posted to microsoft.public.excel,microsoft.public.excel.programming
|
|||
|
|||
Defining Range
Hi
Without VBA =OFFSET(Sheet1!$A$2,,,COUNTIF(Sheet1!$A:$A)-1) but you have to enter the name manually. And you mustn't have gaps in column A. Arvi Laanemets "MAB" wrote in message ... How do I define a range from sheet1!a2 to the last nonempty cell in the A column The name of the range should be equal to sheet!a1 ( the top most cell ) similarly for other columns b, c, d, e |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Defining a Range using Variables | Excel Discussion (Misc queries) | |||
Defining a Range with Criteria | Excel Discussion (Misc queries) | |||
Defining Range Name | Excel Discussion (Misc queries) | |||
help defining dynamic range | Charts and Charting in Excel | |||
Defining a range | Excel Worksheet Functions |