If OptionButton1.Value = True And OptionButton4.Value = True Then
eins = ActiveDocument.TextBox1.Text
In diesem Fall ist "eins" eine Konstante. Ich möchte, dass der Wert der Konstanten 1 in die TextBox1 geschrieben wird ...
Danke
Nico
If OptionButton1.Value = True And OptionButton4.Value = True Then
eins = ActiveDocument.TextBox1.Text
In diesem Fall ist "eins" eine Konstante. Ich möchte, dass der Wert der Konstanten 1 in die TextBox1 geschrieben wird ...
Danke
Nico
ActiveDocument.TextBox1.Text = eins
Gruß
Peter
Const cEins as Integer = 1
...
If OptionButton1.Value = True And OptionButton4.Value = True Then
ActiveDocument.TextBox1.Text= cEins
Danke
Nico
Const cEins as String = "Sehr geehrte Damen und Herren"
...
If OptionButton1.Value = True And OptionButton4.Value = True Then
ActiveDocument.TextBox1.Text= cEins
oder auch:
Dim cEins as String
cEins = "Sehr geehrte Damen und Herren"
If OptionButton1.Value = True And OptionButton4.Value = True Then
ActiveDocument.TextBox1.Text= cEins