folgendes Problem
Hier ein Konstrukt wie es funzt (x ist eine Variable, in der ein numerischer Wert steht:
ActiveSheet.Cells(n + 20, s) = x
ActiveSheet.Cells(n + 21, s).Select
ActiveSheet.Cells(n + 21, s).Activate
ActiveCell.FormulaR1C1 = "=R[-1]C+0.1"
Nun möchte ich in der letzten Zeile statt der 0.1 ebenfalls eine Variable (dx)verwenden. Wie muss das im hinblick auf ActiveCell.FormulaR1C1 codiert werden?
ActiveCell.FormulaR1C1 = "=R[-1]C+ " & dx & ""
oder
ActiveCell.FormulaR1C1 = "=R[-1]C+ & dx & "
funktionieren schon mal nicht.
Vielen Dank und viele Grüße
Markus