...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
...Exit Sub
End If
Next
Selection.ClearContents
End Sub
Sub onkeyler()
Application.CommandBars("Cell").FindControl(ID:=3125).OnAction = "mesaj"
Application.OnKey "{del}", "mesaj"
Application.OnKey "{backspace}", "mesaj"
End Sub
Sub onkeylerpasfetme()
'...
Aşağıdaki şekilde uygularsanız aynı mantık olabilir.
Application.CommandBars("Cell").FindControl(ID:=3125).OnAction = "mesaj"
Application.CommandBars("Cell").FindControl(ID:=3125).OnAction = ""
...Case 3
.Caption = "abc def"
Case 4
.Caption = "Abc def"
End Select
.OnAction = "CaseChange"
End With
Next
Set cb = Nothing
Set PopItem = Nothing
Set MenuObject = Nothing
End Sub
Sub CaseChange()...
...a "Same Reply" option to the context menu
With objCommandBarButton
.Style = msoButtonIconAndCaption
.Caption = "Same Reply"
.FaceId = 355
.OnAction = "Project1.ThisOutlookSession.SendSameReply"
End With
End If
End Sub
Sub SendSameReply()
Dim strTemplate As String
Dim objTemplateReply As...
Merhaba,
Personel.xlb dosyamın içerisine günlük kullanmış olduğum makroları birleştirip 3 ü için ayrı klavye kısayolu eklemek mümkün müdür çok sık kullanıyorum yardımcı olabilirseniz çok makbule geçecek.
ctr+alt+w
ctr+alt+q
...On Error Resume Next
Application.CommandBars("Cell").Controls("Sayfa Seç").Delete
On Error GoTo 0
Set cCont = Application.CommandBars("Cell").Controls.Add(Type:=msoControlButton, Temporary:=True)
cCont.Caption = "Sayfa Seç"
cCont.OnAction = "SayfaCode"
End Sub
...Set Ctrl = AltMenu.Controls.Add(Type:=msoControlButton)
Ctrl.Caption = Sheets(i).Name
Ctrl.OnAction = "'" & ThisWorkbook.Name & "'!" & "SayfayaGit"
i = i + 1
Loop
End With
End Sub
Public Sub SayfayaGit()...
...Özel sekmemde yarattığım 3 tane checkbox(işaret kutusu) var aşağıdaki xml kodlarıyla yaptım.
<checkBox id ="F20"label="F20"tag="F20"onAction="Show_Column" />
<checkBox id ="F21"label="F20 F21 LCI"tag="F-21 LCI"onAction="Show_Column" />
<checkBox id...
...sekmeme asagidaki xml kodlariyla iki adet checkbox ekledim
( Microsoft Office icin Custom UI Editor ile )
<checkBox id ="F16" label="F16" onAction="Show_Column" />
<checkBox id ="F20" label="F20" onAction="Show_Column" />
Ve Bu checkboxlar asagidaki kodu calistiriyor :
Sub...
...Macro").Delete
Set cBut = .CommandBars("Cell").Controls.Add(Temporary:=True)
End With
With cBut
.Caption = "My Macro"
.Style = msoButtonCaption
.OnAction = "My_Macro"
End With
On Error GoTo 0
End Sub
...icbc.Visible = False
ElseIf icbc.Caption = "&Paste" Then
If icbc.Type <> msoControlSplitButtonPopup Then
icbc.OnAction = "thisworkbook.pastes"
End If
ElseIf icbc.Caption = "&Copy" Then
icbc.OnAction = "thisworkbook.copy"
End If
Next icbc
For...
...Object
Set Menü1 = Application.CommandBars("Cell").Controls.Add
With Menü1
.BeginGroup = True
.Caption = "SARI"
.OnAction = "RENK"
End With
Set Menü2 = Application.CommandBars("Cell").Controls.Add
With Menü2
.Caption = "KIRMIZI"
.OnAction =...
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.