Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can use this sub on Excel 2003 (11) and it runs fine:
Sub MarkSub(CurrentSub As String) Dim rng As Range Dim NextEmpty As Integer ' The next line is where the error occurs Set rng = Workbooks(1).Sheets("Progress").Cells(Rows.count, 1).End(xlUp) NextEmpty = rng.Row + 1 Workbooks(1).Worksheets("Progress").Range("A" & NextEmpty).Value = CurrentSub End Sub However, when it is run on Excel 2000 (9), it gives a error at the line I commented above. I was told it was an out of range error. Can anyone suggest a workaround? TIA, Ken |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2000 and Excel 2003 in Office 2003 | New Users to Excel | |||
Upgrade from Excel 2000 to Excel 2003 without MS Office 2003? | Excel Discussion (Misc queries) | |||
Excel 2003 crashes loading excel files created Excel 2000 | Excel Discussion (Misc queries) | |||
Excel 2000 VBA App Now Works in Excel 2003, but not Excel 2002 | Excel Programming | |||
Excel 2003 won't run simple code that Excel XP and Excel 2000 will run | Excel Programming |