Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select method of Range class failure
With ws
loads of code then 'Locate the end of each page and insert the Collection formulae For j = 1 To UBound(Pagevarr) - 1 StartToCollectionRow = Pagevarr(j).Offset(1, 6).Row EndToCollectionRow = Pagevarr(j + 1).Offset(-3, 6).Row Pagevarr(j + 1).Offset(-1, 7).Formula = "=sum(H" & _ StartToCollectionRow & ":H" & EndToCollectionRow & ")" Next which works fine and them immediately after: 'Transfer the page totals to the Collection page Pagevarr(j).Offset(1, 1).End(xlDown).Select If Not (Pagevarr(j).Offset(1, 1).End(xlDown).Value = "COLLECTION" Or _ ActiveCell.Value = "COLLECTION (Cont.)" Or _ ActiveCell.Value = "GENERAL SUMMARY") Then MsgBox "There is a missing COLLECTION in: " & ws.Name & "..." & _ ActiveCell.Address GoTo Line5 Else etc The code fails on Pagevarr(j).Offset(1, 1).End(xlDown).Select Why is this, please? Regards. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.593 / Virus Database: 376 - Release Date: 20/02/2004 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"Select method of Range class failed" Error | Excel Discussion (Misc queries) | |||
Run-Time error '1004' : Select method of Range class failed | Excel Discussion (Misc queries) | |||
Run-time error "1004" Select method of range class failed | Excel Discussion (Misc queries) | |||
excel97: runtime error 1004 select method of range class failed | Excel Programming | |||
error 1004 Select method of Range class failed | Excel Programming |