Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Reference Problem
I need to convert this range reference to a variable one using "Z" for
only "D4005". "B2" is static and therefore need not be changed. Dim Z As Integer Range( "B2:D4005") I attempted something like this without success: Range("B2:D & Z & ") Thank you for your anticipated response. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Reference Problem
Hi,
Am Tue, 18 Oct 2011 10:49:37 -0700 (PDT) schrieb sylink: Range("B2:D & Z & ") try: Range("B2:D" & Z) Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Reference Problem
On Tue, 18 Oct 2011 10:49:37 -0700 (PDT), sylink wrote:
I need to convert this range reference to a variable one using "Z" for only "D4005". "B2" is static and therefore need not be changed. Dim Z As Integer Range( "B2:D4005") I attempted something like this without success: Range("B2:D & Z & ") Thank you for your anticipated response. Not tested: Try: Range("B2","D" & Z) or Range("B2:D" & Z) |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Reference Problem
On Oct 18, 12:21*pm, Ron Rosenfeld wrote:
On Tue, 18 Oct 2011 10:49:37 -0700 (PDT), sylink wrote: I need to convert this range reference to a variable one using "Z" for only "D4005". "B2" is static and therefore need not be changed. Dim Z As Integer Range( "B2:D4005") I attempted something like this without success: Range("B2:D & Z & ") Thank you for your anticipated response. Not tested: Try: * Range("B2","D" & Z) or * * Range("B2:D" & Z) Try this: Range(cells(2,2),cells(4,Z)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
automatic range - named range give me circular reference... | Excel Discussion (Misc queries) | |||
Problem with Range reference - Odd error | Excel Programming | |||
Range reference problem placing charts | Excel Programming | |||
Reference range in formula problem | Excel Programming | |||
adding reference-to-range control to excel range | Excel Programming |