![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 18
|
What does the Runtime error 9, Subscript out of range mean in Visual Basic? And how can I fix it.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
What line of code is it giving you this error at?
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 18
|
With Worksheets("Output") .Cells(Heading_Cell_Number, 2).Value = "Housing" & (Housing_Cell_Number - 4) & " Top" .Cells(Data_Cell_Number, 2).Value = -(Worksheets("Input").Cells(Housing_Cell_Number, 3)) / 2 + Worksheets("Input").Cells(Housing_Cell_Number, 12) .Cells(Data_Cell_Number + 1, 2).Value = -(Worksheets("Input").Cells(Housing_Cell_Number, 3)) / 2 + Worksheets("Input").Cells(Housing_Cell_Number, 12) .Cells(Data_Cell_Number + 2, 2).Value = (Worksheets("Input").Cells(Housing_Cell_Number, 3)) / 2 + Worksheets("Input").Cells(Housing_Cell_Number, 12) |
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 18
|
At the very top
|
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Posts: 18
|
Its a long program and it worked as I periodically tested it as I worked on it. But then it got to long and I got an error. So I divided it up into parts and I get this error at the "With" statement which had run correctly before.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|