VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,780 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi guys,
Could you help me with this error ? I'm a bit lost ..
Thx a lot,
Santi
Sub Actualisatie()
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = False
Dim i As Integer
i = 0
'STEP 1. CALCULATE OT FOR EACH PROJECT PERIOD
Range("Scenario").Value = i
Do While i <= Range("subs_period").Value
Application.StatusBar = "Actualisation (VEA-Model): Goalseek OT in year " & i
Range("Scenario").Value = i
Call Goalseek
Range("OT_Start").Offset(0, i).Value = Range("GS_OT_PF_GS").Value
i = i + 1
Application.StatusBar = False
Loop
'STEP 2. RETURN TO START PERIOD
'Range("SCenario").Value = 0
'Call Goalseek
End Sub
Given just VB and runtime error 13 it looks like a type issue but it isn't clear. Could you provide some more information as it is really hard to just look at your code and figure things out?
Just on a guess I'm going to assume the range you're passing to this code is bad. Especially around that Scenario
column. But this is a total guess at this point.