makro çalıştırma

Katılım
13 Mart 2007
Mesajlar
5
Excel Vers. ve Dili
2003 türkçe
belirli bir hücrenin değeri 0 olduğunda çalışacak makro yapabilirmiyiz:yardim:
 
Katılım
19 Ocak 2005
Mesajlar
940
Excel Vers. ve Dili
İŞ : Microsoft Office Excel 2003
EV : Microsoft Office Excel 2003
Site ADMİN imiz Sn: ALPEN e ait bir kod. kendinize uyarlayabilirsiniz.

Modül1 e ekleyin:

Public col As Integer
Public row As Integer

ilgili sayfanın kod bölümüne ekleyin

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("B1:B8")) Is Nothing Then Exit Sub
If row <> 0 Then
If Cells(row, col) = "0" And Target.row <> row Then
MsgBox ("boş geçemezsiniz")
Cells(row, col).Select
Exit Sub
End If
End If
If Target.row <> row Then
row = Target.row
col = Target.Column
End If
End Sub
 
Üst