Bryan03Cobra
New Member
- Joined
- Apr 27, 2011
- Messages
- 4
Hello everybody, I've browsed this forum a lot so I figured it was time to register and ask some questions of my own. This seems like an easy question yet I can't find the answer.
This code works fine in Excel 2003 but I get a Runtime Error 13 message in '07. Here is the code:
Sub First3()
Dim Ded As Integer
Dim Coins As Double
Dim OOP_Max As Integer
Dim FamDedFactor As Double
Dim i As Integer
Dim Plan_Value As Double
For i = 3 To 5
Sheets("Data and Pricing").Select
Ded = Cells(i, 7).Value
Coins = Cells(i, 11).Value
OOP_Max = Cells(i, 12).Value
FamDedFactor = Cells(i, 10).Value
Sheets("User Input").Select
Range("EV11").Value = Ded
Range("EV20").Value = Coins
Range("EV21").Value = OOP_Max
Range("EV14").Value = FamDedFactor
Calculate
Sheets("Summary").Select
Plan_Value = Range("V123").Value
Sheets("Data and Pricing").Select
Cells(i, 13).Value = Plan_Value
Next i
End Sub
The bolded area is where the error comes from.
Thanks in advance.
Bryan
This code works fine in Excel 2003 but I get a Runtime Error 13 message in '07. Here is the code:
Sub First3()
Dim Ded As Integer
Dim Coins As Double
Dim OOP_Max As Integer
Dim FamDedFactor As Double
Dim i As Integer
Dim Plan_Value As Double
For i = 3 To 5
Sheets("Data and Pricing").Select
Ded = Cells(i, 7).Value
Coins = Cells(i, 11).Value
OOP_Max = Cells(i, 12).Value
FamDedFactor = Cells(i, 10).Value
Sheets("User Input").Select
Range("EV11").Value = Ded
Range("EV20").Value = Coins
Range("EV21").Value = OOP_Max
Range("EV14").Value = FamDedFactor
Calculate
Sheets("Summary").Select
Plan_Value = Range("V123").Value
Sheets("Data and Pricing").Select
Cells(i, 13).Value = Plan_Value
Next i
End Sub
The bolded area is where the error comes from.
Thanks in advance.
Bryan