DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Private Module
'============================COMMANDBAR============================================
Public cbrWMB As CommandBar 'Worksheet menü
Public cbrHCR As CommandBar 'Cell menü
Public cbrSTR As CommandBar 'Row menü
Public cbrSTN As CommandBar 'Colomn menü
Public cbrPLY As CommandBar 'Ply menü (sayfa sekmeleri)
'=========================COMMANDBARPOPUP==========================================
Public cbpDSY As CommandBarPopup 'Worksheet menü>Dosya
Public cbpDZN As CommandBarPopup 'Worksheet menü>Düzen
Public cbpBCM As CommandBarPopup 'Worksheet menü>Biçim
Public cbpSTR As CommandBarPopup 'Worksheet menü>Biçim>Satır
Public cbpSTN As CommandBarPopup 'Worksheet menü>Biçim>Sütun
Public cbpSYF As CommandBarPopup 'Worksheet menü>Biçim>Sayfa
Public cbpARC As CommandBarPopup
'=========================COMMANDBARBUTTON=========================================
Public cbbMKR As CommandBarButton
Public wkb As Workbook
Public genislik As Single, yukseklik As Single, mevcut As Single, text As String, cevap As String
Public sh As Worksheet
Public arrSh(), arrShX()
Sub MenuDgr()
Set cbrWMB = Application.CommandBars("Worksheet Menu Bar")
Set cbrHCR = Application.CommandBars("Cell")
Set cbrSTR = Application.CommandBars("Row")
Set cbrSTN = Application.CommandBars("Column")
Set cbrPLY = Application.CommandBars("Ply")
Set cbpDSY = cbrWMB.Controls(1) 'Worksheet menü>Dosya
Set cbpDZN = cbrWMB.Controls(2) 'Worksheet menü>Düzen
Set cbpBCM = cbrWMB.Controls(5) 'Worksheet menü>Biçim
Set cbpSTR = cbpBCM.Controls(2) 'Worksheet menü>Biçim>Satır
Set cbpSTN = cbpBCM.Controls(3) 'Worksheet menü>Biçim>Sütun
Set cbpSYF = cbpBCM.Controls(4) 'Worksheet menü>Biçim>Sayfa
Set cbpARC = cbrWMB.Controls(6) 'Worksheet menü>ARAÇLAR
Set cbbMKR = cbpARC.Controls(14).Controls(2) 'makro kaydet butonu
End Sub
Sub Tıklanır_Yap()
Call MenuDgr
'MsgBox cbpARC.Controls(14).Controls(2).Caption
cbbMKR.Enabled = True
End Sub
Sub Düğme1_Tıklat()
Application.CommandBars("Macro").Controls(2).Enabled = True
End Sub