Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look... I need some help understanding something. I know with your wisdom,
you will be able to get this through my thick skull. What really is the difference between thse declarations: Dim Var as Range Dim Var as Object When I think of a range... I think of a range object. The key word being "object". The reason I bring up this confusion, mainly, is that if I set a range variable to a range, that " RangeValue", doesn't carry with it all the properties of where it came from. Condider this: sheet1 is active Set MyRange = Range("A2").CurrentRegion MyRange is no a "range" object which points to the curren region connected to cell A1 on Sheet1 What if I want to set MyRange to a region on another sheet??? The following is not valid code: Set MyRange = sheets("Sheet3").Range("A1").CurrentRegion Is this where an "Object" variable come into play? I realize that I can use: MyRange = MyOtherRange.address(external:=True) to get the full reference, but this does return a string variable... not a range Can someone Plleeease help me to understand this. John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Working with the range object | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |