Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Usage
I need to be able to adjust the ending cell range in this example by using a
formula,for when I do an insert rows, the K76 will become K86 or anyother number.What are my options and how do I construct this statement so that I will not have to touch is statement again. If Not Application.Intersect(Target, Me.Range("K4:K76")) Is Nothing Then |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Usage
I need to be able to adjust the ending cell range in this example by using
a formula,for when I do an insert rows, the K76 will become K86 or anyother number.What are my options and how do I construct this statement so that I will not have to touch is statement again. If Not Application.Intersect(Target, Me.Range("K4:K76")) Is Nothing Then Put the 76 or 86 or whatever into a String variable and concatenate it into the range text... Dim ColNumber As String ..... ..... ColNumber = "86" ..... ..... If Not Application.Intersect(Target, Me.Range("K4:K" & ColNumber)) Is Nothing Then ..... ..... Rick |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Usage
Thanks will give it a try.
"Rick Rothstein (MVP - VB)" wrote: I need to be able to adjust the ending cell range in this example by using a formula,for when I do an insert rows, the K76 will become K86 or anyother number.What are my options and how do I construct this statement so that I will not have to touch is statement again. If Not Application.Intersect(Target, Me.Range("K4:K76")) Is Nothing Then Put the 76 or 86 or whatever into a String variable and concatenate it into the range text... Dim ColNumber As String ..... ..... ColNumber = "86" ..... ..... If Not Application.Intersect(Target, Me.Range("K4:K" & ColNumber)) Is Nothing Then ..... ..... Rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Protect/Restrict usage of a range of cells. | Excel Discussion (Misc queries) | |||
range usage question | Excel Worksheet Functions | |||
Different usage of range formats, conflict? | Excel Programming | |||
Dynamic range not resized for RowSource usage | Excel Programming | |||
Variable usage in Range Command | Excel Programming |