Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a large amount of data (over 500,000 rows) so I have spread thi data over multiple sheets. The code I have written has to find record that match certain criteria and does this by looping through cells However, when it reaches the bottom of the first sheet (row 65536) need it to start on the next sheet but I keep getting a Run time error Here is the bit of code.... If ActiveCell.Row = 65536 And ActiveSheet.Index < 9 Then g3000SheetNumber = ActiveSheet.Index + 1 Sheets(g3000SheetNumber ).Activate Cells(1, 1).Select It manages to select the new sheet but when I try to select the firs cell of the sheet it throws an error. Can anyone help please? -- smit12 ----------------------------------------------------------------------- smit127's Profile: http://www.excelforum.com/member.php...fo&userid=2687 View this thread: http://www.excelforum.com/showthread.php?threadid=40109 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I use a cell value to select a sheet tab? | Excel Discussion (Misc queries) | |||
Select sheet from cell value | Excel Discussion (Misc queries) | |||
View, scroll and select a cell value from another Excel sheet? | Excel Worksheet Functions | |||
How do i select the first cell in a sheet | Excel Programming | |||
Select sheet based on cell value | Excel Programming |