- Katılım
- 15 Temmuz 2012
- Mesajlar
- 2,802
- Excel Vers. ve Dili
- Ofis 2021 TR 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Application.CommandBars("Cell").FindControl(ID:=292).Enabled = False 'Hücre içinde
Application.CommandBars("Row").FindControl(ID:=293).Enabled = False 'Satırda
Application.CommandBars("Column").FindControl(ID:=294).Enabled = False 'Sütunda
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Sheets("Sayfa1").Application.CommandBars("Cell").FindControl(ID:=292).Enabled = False 'Hücre içinde
Sheets("Sayfa1").Application.CommandBars("Row").FindControl(ID:=293).Enabled = False 'Satırda
Sheets("Sayfa1").Application.CommandBars("Column").FindControl(ID:=294).Enabled = False 'Sütunda
End Sub
Private Sub Worksheet_Activate()
Application.CommandBars("Cell").FindControl(ID:=292).Enabled = False
Application.CommandBars("Row").FindControl(ID:=293).Enabled = False
Application.CommandBars("Column").FindControl(ID:=294).Enabled = False
End Sub
Private Sub Worksheet_Deactivate()
Application.CommandBars("Cell").FindControl(ID:=292).Enabled = True
Application.CommandBars("Row").FindControl(ID:=293).Enabled = True
Application.CommandBars("Column").FindControl(ID:=294).Enabled = True
End Sub
Private Sub Worksheet_Activate()
Application.CommandBars("Cell").FindControl(ID:=292).Enabled = False
Application.CommandBars("Row").FindControl(ID:=293).Enabled = False
Application.CommandBars("Column").FindControl(ID:=294).Enabled = False
Application.CommandBars("Cell").Controls("Kopyala").Enabled = False
Application.CommandBars("Row").Controls("Kopyala").Enabled = False
Application.CommandBars("Column").Controls("Kopyala").Enabled = False
End Sub
Private Sub Worksheet_Deactivate()
Application.CommandBars("Cell").FindControl(ID:=292).Enabled = True
Application.CommandBars("Row").FindControl(ID:=293).Enabled = True
Application.CommandBars("Column").FindControl(ID:=294).Enabled = True
Application.CommandBars("Cell").Controls("Kopyala").Enabled = True
Application.CommandBars("Row").Controls("Kopyala").Enabled = True
Application.CommandBars("Column").Controls("Kopyala").Enabled = True
End Sub
Sub Test()
' Haluk - 25/09/2019
'sa4truss@gmail.com
'
For i = 1 To CommandBars("Cell").Controls.Count
strTemp = strTemp & CommandBars("Cell").Controls(i).Caption & " - " & CommandBars("Cell").Controls(i).ID & vbCrLf
Next
MsgBox "Cell Menu" & vbCrLf & "-------" & vbCrLf & strTemp
strTemp = ""
For i = 1 To CommandBars("Row").Controls.Count
strTemp = strTemp & CommandBars("Row").Controls(i).Caption & " - " & CommandBars("Row").Controls(i).ID & vbCrLf
Next
MsgBox "Row Menu" & vbCrLf & "-------" & vbCrLf & strTemp
strTemp = ""
For i = 1 To CommandBars("Column").Controls.Count
strTemp = strTemp & CommandBars("Column").Controls(i).Caption & " - " & CommandBars("Column").Controls(i).ID & vbCrLf
Next
MsgBox "Column Menu" & vbCrLf & "-------" & vbCrLf & strTemp
End Sub