Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() JLXL, if you comment on my post, PLS read it carefully. your code ONLY works IF DecisionScores is Active Try following: Dim MyRange As Range 'assume a fresh workbook (with =2 sheets) Worksheets(1).Name = "Test Worksheets(2).Name = "DecisionScores" Worksheets(2).Activate 'this works Set MyRange = _ Worksheets("DecisionScores").Range(Cells(3, 2), Cells(3,6)) 'This will give a runtime error Worksheets(1).Activate Set MyRange = _ Worksheets("DecisionScores").Range(Cells(3, 2), Cells(3,6)) -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam JLXL wrote in Dim MyRange As Excel.Range Set MyRange = Worksheets("DecisionScores").Range(Cells(3, 2), Cells(3, 6)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
returning pivottable object from a range object | Excel Programming | |||
WorkSheetFunction.CountIf & WorkSheetFunction.SumIf with 2 conditions? | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |