Hello guys. Im new to Excel VBA and i need help with a problem im trying to solve.
I have 2 shapes and when i click the shapes the same userform appears. The value that are typed in the userform is gonna be placed in a different cell wich depends on what shape is clicked.
The code i have doesnt work so i would appriciate if somebody could help me out
"
Private Sub CommandButton1_Click()
If HovFelleTilluft = Clicked Then
Sheets("Engine").Range("F24").Value = Txt63T
Else
Sheets("Engine").Range("D24").Value = Txt63T
End If
End Sub
"
I changed the name of the shapes. One shape is called "HovFelleTilluf" and the other "HovFelleAvtrekk"
Sorry for my bad english and thanks for the help =)
I have 2 shapes and when i click the shapes the same userform appears. The value that are typed in the userform is gonna be placed in a different cell wich depends on what shape is clicked.
The code i have doesnt work so i would appriciate if somebody could help me out
"
Private Sub CommandButton1_Click()
If HovFelleTilluft = Clicked Then
Sheets("Engine").Range("F24").Value = Txt63T
Else
Sheets("Engine").Range("D24").Value = Txt63T
End If
End Sub
"
I changed the name of the shapes. One shape is called "HovFelleTilluf" and the other "HovFelleAvtrekk"
Sorry for my bad english and thanks for the help =)