Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
runtime error '6' overflow
I get a runtime error in a routine that has run many times in the
past. The difference is each month I have more data. the routine does a sort then stops at this line: finalrow=cells(rows.count,"a").end(xlup).row The answer should be 41236. If I comment out this line and simply put in finalrow=41236 I still get the runtime error '6' If I put this line in a temp subroutine is runs fine. Not sure what to do next. Thanks for any help. Don |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
runtime error '6' overflow
dim finalrow as long not as integer.
-- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam don wrote : I get a runtime error in a routine that has run many times in the past. The difference is each month I have more data. the routine does a sort then stops at this line: finalrow=cells(rows.count,"a").end(xlup).row The answer should be 41236. If I comment out this line and simply put in finalrow=41236 I still get the runtime error '6' If I put this line in a temp subroutine is runs fine. Not sure what to do next. Thanks for any help. Don |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
runtime error '6' overflow
Don,
How have you DIMmed "finalrow" ? As an Integer ? NickHK "don" wrote in message ... I get a runtime error in a routine that has run many times in the past. The difference is each month I have more data. the routine does a sort then stops at this line: finalrow=cells(rows.count,"a").end(xlup).row The answer should be 41236. If I comment out this line and simply put in finalrow=41236 I still get the runtime error '6' If I put this line in a temp subroutine is runs fine. Not sure what to do next. Thanks for any help. Don |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
runtime error '6' overflow
yes, I dimensioned it as an integer.
I guess it needs to be dim as long Don On Tue, 26 Jul 2005 09:35:38 +0800, "NickHK" wrote: Don, How have you DIMmed "finalrow" ? As an Integer ? NickHK "don" wrote in message .. . I get a runtime error in a routine that has run many times in the past. The difference is each month I have more data. the routine does a sort then stops at this line: finalrow=cells(rows.count,"a").end(xlup).row The answer should be 41236. If I comment out this line and simply put in finalrow=41236 I still get the runtime error '6' If I put this line in a temp subroutine is runs fine. Not sure what to do next. Thanks for any help. Don |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Overflow error.. why? | Excel Discussion (Misc queries) | |||
runtime error '6' overflow | Setting up and Configuration of Excel | |||
Runtime Error 6 Overflow | Excel Programming | |||
Overflow error | Excel Programming | |||
Help! Overflow Error 6 | Excel Programming |