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))