muhittinemmi
New Member
- Joined
- Jun 20, 2023
- Messages
- 19
VBA Code:
Private Sub CommandButton2_Click()
Dim emmi As Long, Say As Byte
emmi = Range("a45").End(3).Row + 1
if cells(emmi,"a").value<>"" then
msgbox "Satır ekleyin. "
exit sub
end if
Cells(emmi, "A") = ComboBox1.List
Cells(emmi, "C") = TextBox1.Text
Cells(emmi, "D") = TextBox2.Text
Unload Me
End Sub
How can I add the content of H1 instead of a45 in the code.
H1: variable content, such as a46, a47, a48.