Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to return a range to send it to a function. This is what I am using
Set ranger = Range(Cells(TRow, 14), Cells(TRow, TCol + 3)).Address It doesn't seem to work. All the variables are correct in debugger but the ranger (dim as range) is "nothing". Thanks again |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try removing the .Address property call from the end of the Range (Address
returns a String value... you need an object to be assigned to the ranger range). -- Rick (MVP - Excel) "NDBC" wrote in message ... I need to return a range to send it to a function. This is what I am using Set ranger = Range(Cells(TRow, 14), Cells(TRow, TCol + 3)).Address It doesn't seem to work. All the variables are correct in debugger but the ranger (dim as range) is "nothing". Thanks again |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim myRange as Range
Set myRange = Range(Cells(),Cells()) "NDBC" wrote: I need to return a range to send it to a function. This is what I am using Set ranger = Range(Cells(TRow, 14), Cells(TRow, TCol + 3)).Address It doesn't seem to work. All the variables are correct in debugger but the ranger (dim as range) is "nothing". Thanks again |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return date if in range, else return blank | Excel Worksheet Functions | |||
drop first row in range and return a new range object | Excel Programming | |||
Return Range Address from Active Range | Excel Programming | |||
return min. of range except 0 | Excel Discussion (Misc queries) | |||
Return to range | Excel Programming |