G
Guest
Hello,
THe following code works on Excel 2002 but seems to fail on another computer
with Excel 2003
Dim TargetCell1 As Range
Set TargetCell1 = Range("TargetCell1")
Range(TargetCell1, TargetCell1.Offset(Range("MaxNoTerritory").Value, 0)).Copy
Range("TargetDisplayCell1").PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The error message is
Run-time error '-2147417848 (80010108)':
Method 'PasteSpecial' of object 'Range' failed
and in the debug the following appears
Range("MaxNoTerritory").Value = Method 'Range' of object'_Global' failed
Can you help?
Thanks in advance
THe following code works on Excel 2002 but seems to fail on another computer
with Excel 2003
Dim TargetCell1 As Range
Set TargetCell1 = Range("TargetCell1")
Range(TargetCell1, TargetCell1.Offset(Range("MaxNoTerritory").Value, 0)).Copy
Range("TargetDisplayCell1").PasteSpecial Paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
The error message is
Run-time error '-2147417848 (80010108)':
Method 'PasteSpecial' of object 'Range' failed
and in the debug the following appears
Range("MaxNoTerritory").Value = Method 'Range' of object'_Global' failed
Can you help?
Thanks in advance