Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Name a dynamic Range
I am currently using the following formula to name a range of data in a list
whic is regularly updated. =Offset(Sheet1!$A$1,0,0,counta(Sheet1!$A:$A),35) I wish to create another range of data from the same sheet which contains 35 columns - I want the range to consist only of the rows in which column "U" is blank. I would also like the range to be dynamic so it updates as new rows are added. thanks for your help. Regards Mark |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Name a dynamic Range
Mark,
You would need to use the worksheet's change event: copy the code below, right-click the sheet tab, select "View Code" and paste the code into the window that appears. Of course, modify the name and the range to suit your requirements - "35 columns" isn't very specific, but I started with column A.... HTH, Bernie MS Excel MVP Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next Application.EnableEvents = False ThisWorkbook.Names("myName").Delete ThisWorkbook.Names.Add "myName", RefersTo:="=" & Intersect(Sheet1.UsedRange, _ Sheet1.Range("U:U")).SpecialCells(xlCellTypeBlanks ).Offset(0, -20).Resize(, 35).Address Application.EnableEvents = True End Sub "Mark Campbell" wrote in message ... I am currently using the following formula to name a range of data in a list whic is regularly updated. =Offset(Sheet1!$A$1,0,0,counta(Sheet1!$A:$A),35) I wish to create another range of data from the same sheet which contains 35 columns - I want the range to consist only of the rows in which column "U" is blank. I would also like the range to be dynamic so it updates as new rows are added. thanks for your help. Regards Mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
getting the absolute range address from a dynamic named range | Excel Programming | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
copying dynamic range based on cell outside of range | Excel Programming | |||
select dynamic range with dynamic start point | Excel Programming | |||
Excel 2000 VBA - Set Print Range in dynamic range | Excel Programming |