Merhaba ilginiz için teşekkürler
Söylediklerinizi yaptım ama ya yanlış yaptım yada yanlış bir şey var.
Hiçbir netice alamadım.
1-Boş bir excel açtım ThisWorkbook içine ilk Kodunuzu girdim Dosyayı Farklı olarak Eklenti (xlam) olarak kaydettim
2-Dosyayı tekrar açıp bir modül oluşturup içine diğer...
...MenuObject = cb.Controls.Add(Type:=msoControlButton, before:=7)
With MenuObject
.Caption = "---------Sayfalarda Sil"
.OnAction = "Sil"
.FaceId = 53
End With
Set cb = Nothing
Set MenuObject = Nothing
End Sub
Sub Auto_Close()...
...Case 4
.Caption = "Abc def"
Case 5
.Caption = "Abc Def GHI"
End Select
.OnAction = "CaseChange"
End With
Next
Set cb = Nothing
Set PopItem = Nothing
Set MenuObject = Nothing
End Sub
'
Sub...
...MenuObject = cb.Controls.Add(Type:=msoControlButton, before:=7)
With MenuObject
.Caption = "+ , - Yeni Sil Ve Ekle"
.OnAction = "sil_tabloya_ekle"
.FaceId = 53
End With
Set cb = Nothing
Set MenuObject = Nothing
End Sub
Sub Auto_Close()...
...MenuObject = cb.Controls.Add(Type:=msoControlButton, before:=7)
With MenuObject
.Caption = "Sayfalarda Satir Ekle"
.OnAction = "deneme"
.FaceId = 51
End With
Set cb = Nothing
Set MenuObject = Nothing
End Sub
Sub Auto_Close()...
...https://docs.microsoft.com/en-us/office/vba/library-reference/concepts/customize-the-office-fluent-ribbon-by-using-an-open-xml-formats-file
onaction da yazılı olan isim makro ismidir.
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>...
...cbc.Visible = False
Next cbc
With Application.CommandBars("Cell").Controls.Add(temporary:=True)
.Caption = "Mevzuata Göre Yenile"
.OnAction = "Mevzuata Göre Yenile"
End With
With Application.CommandBars("Cell").Controls.Add(temporary:=True)
.Caption = "Çalışma Takvimine Göre Yenile"
.OnAction...
...1.5, 2)
With MenuObject
For i = LBound(myArr) To UBound(myArr)
With .Controls.Add(Type:=msoControlButton)
.OnAction = "Test"
.FaceId = 7
.Caption = myArr(i)
End With
Next
End With
Set MenuObject = Nothing
Set cb =...
...Sag_Tik_Ana_Menu
For Each Sil_Alt_Menu In Sag_Tik_Sil_Menu.Controls
If Sil_Alt_Menu.Index = 1 Then Sil_Alt_Menu.OnAction = "Silme_Onaylama_Sutun"
If Sil_Alt_Menu.Index = 2 Then Sil_Alt_Menu.OnAction = "Silme_Onaylama_Satir"
Next...
Pardon ben sadece resmi ekle modülünü kullanacağım için o bölümü almıştım, düzenleyince resim almaya başladı tek sorun. 5 satırdın sadece ilk ve son satırını alıyor aradakileri boş geçiyor. İlk satırdaki resme de 4. satırın ismini veriyor.
ActiveSheet.Shapes.AddPicture(yol, True, True...
...Set resim = ActiveSheet.Shapes.AddPicture(yol, True, True, Range("F" & i).Left, Range("F" & i).Top, 60, Range("F" & i).Height)
resim.OnAction = "Resim_Büyüt"
resim.Name = Range("B" & i)
Next
End Sub
Sub Resim_Büyüt()
Dim ActiveShape As Shape
ButtonName = Application.Caller
Set ActiveShape...
...görüleceği hücre Soldan
.Top = Range("F" & i).Top 'Resmin görüleceği hücre Üstten
.Height = Range("F" & i).Height
.Name = Range("B" & i)
.OnAction = "Resim_Büyüt"
End With
Next
End Sub
Sub Resim_Büyüt()
Dim ActiveShape As Shape
ButtonName = Application.Caller
Set ActiveShape =...
Kodlarınızdaki "AddShape" bu satırın altına Selection.OnAction = "Renklendir" şu satırı ekleyin , böylelikle tüm oluşturulan şekillere atanmış olur kodlar.
...[S:S]) Is Nothing Then Exit Sub
For a = Application.CommandBars("Cell").Controls.Count To 1 Step -1
Application.CommandBars("Cell").Controls(a).Delete
Next
Set menu01 = Application.CommandBars("Cell").Controls.Add
With menu01
.Caption = "TAKVİM AÇ"
.OnAction = "ac"
End With
Exit Sub
menu
End Sub
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.