Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / July 2005

Tip: Looking for answers? Try searching our database.

runtime error '6' overflow

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
don - 26 Jul 2005 02:14 GMT
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
Dave Peterson - 26 Jul 2005 02:52 GMT
Did you use:

Dim FinalRow as Integer

If yes, change it to:
dim finalrow as long

Integers can only go up to 32767.

> I get a runtime error in a routine that has run many times in the
> past.
[quoted text clipped - 17 lines]
>
> Don

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.