vernel
Yeni Üye
- Katılım
- 12 Ağu 2021
- Mesajlar
- 321
- Çözümler
- 1
- Aldığı beğeni
- 127
- Excel V
- Office 2013 TR
Konu Sahibi
Merhaba, aşağıdaki kod sayesinde düğme seçenekleri Evet-Hayır-İptal olan mesaj elde edebiliyoruz. Acaba Evet-Hayır-İptal düğme tanımları yerine İstanbul-Ankara-İzmir yazılması mümkün olur mu?
Sub Makro1()
Dim iResponse As Integer
iResponse = MsgBox("Evet : Şunu Yap" & _
vbCrLf & "Hayir : Öyle Yapma, Böyle Yap" & _
vbCrLf & "Iptal : Hiç Bir Şey Yapma", vbYesNoCancel)
If iResponse = vbCancel Then
Range("A1").Select
End If
If iResponse = vbYes Then
Range("B2").Select
End If
If iResponse = vbNo Then
Range("C3").Select
End If
End Sub
Sub Makro1()
Dim iResponse As Integer
iResponse = MsgBox("Evet : Şunu Yap" & _
vbCrLf & "Hayir : Öyle Yapma, Böyle Yap" & _
vbCrLf & "Iptal : Hiç Bir Şey Yapma", vbYesNoCancel)
If iResponse = vbCancel Then
Range("A1").Select
End If
If iResponse = vbYes Then
Range("B2").Select
End If
If iResponse = vbNo Then
Range("C3").Select
End If
End Sub