- Katılım
- 1 Mart 2005
- Mesajlar
- 22,248
- Excel Vers. ve Dili
-
Win7 Home Basic TR 64 Bit
Ofis-2010-TR 32 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Dim WithEvents c1 As CommandButton
Dim WithEvents c2 As CommandButton
Private Sub c1_Click()
MsgBox "Benim adım : CommandButon '1'"
End Sub
Private Sub c2_Click()
MsgBox "Benim adım : CommandButon '2'"
End Sub
Private Sub Nesne_Ata()
With Me.Frame1
Set c1 = .Controls("CommandButton1")
Set c2 = .Controls("CommandButton2")
End With
End Sub
Private Sub Nesne_Sil()
With Me.Frame1
Set c1 = Nothing
Set c2 = Nothing
End With
End Sub
Private Sub Worksheet_Activate()
[COLOR=DarkGreen]' With Me.Frame1
' Set c1 = .Controls("CommandButton1")
' Set c2 = .Controls("CommandButton2")
' End With[/COLOR]
End Sub
Private Sub Worksheet_Deactivate()
[COLOR=DarkGreen]' With Me.Frame1
' Set c1 = Nothing
' Set c2 = Nothing
' End With[/COLOR]
End Sub
Sub auto_open()
Application.Run _
Sheets("Sayfa1").Name & _
".Nesne_Ata"
[COLOR=DarkGreen] '-- Run ile bir olayı da istendiğinde çalıştırabiliriz.
'Application.Run _
Sheets("Sayfa1").Name & _
".Worksheet_[B]Activate[/B]"[/COLOR]
End Sub
Sub auto_close()
Application.Run _
Sheets("Sayfa1").Name & _
".Nesne_Sil"
[COLOR=DarkGreen]'-- Run ile bir olayı da istendiğinde çalıştırabiliriz.
'Application.Run _
Sheets("Sayfa1").Name & _
".Worksheet_[B]Deactivate[/B]"[/COLOR]
End Sub