Kann ich einen (Farb-)Wert von einer (String-)Variablen an eine andere (String-)Variable übergeben.
Ein Beispiel:
Farbe1 hat den Wert "255" (Rot).
Nun möchte ich, dass Farbe2 diesen Wert erhält.
Wie mache ich das?
Private Sub CommandButton1_Click()
farb = CommandButton1.BackColor
MsgBox farb
End Sub
Private Sub CommandButton1_Click()
farb = CommandButton1.BackColor
MsgBox farb
End Sub
Sub FarbeTest()
Dim strFarbe1 As String, strFarbe2 As String
strFarbe1 = "255"
strFarbe2 = strFarbe1
MsgBox strFarbe2
End Sub