ich habe ein Problem mit einem VBA-Optimierungstool.
Dieses zeigt mir die optimale Verteilung in einem Portfolio in einer UserForm an, wenn ich das Tool aber mehrmals durchführe, löscht es nicht die alten Werte. Was muss ich in meinem Code ändern?
Hier ist der Code zur Befüllung:
ActiveWorkbook.ActiveSheet.Cells(3, Aktienzahl + 8) = "Optimales Portfolio im _
Tangentialpunkt"
For i = 1 To Aktienzahl
ActiveWorkbook.ActiveSheet.Cells(4, Aktienzahl + i + 8) = "Aktie" & i
ActiveWorkbook.ActiveSheet.Cells(5, Aktienzahl + i + 8) = Gewichtung(i, Max)
Ausgabe.Label1.Caption = Ausgabe.Label1.Caption & vbLf & Gewichtung(i, Max)
Next i
Vielen Dank und viele Grüße,Andreas