با درود
ممنون از دوست عزیز
شاید اگه اینطورب نوشته میشد بهتر بود چون ما همیشه مثلا میخوایم یه سل واسمون مشخص باشه . خاصیت cancel رو هم اگه برداریم فک کنم با توجه به تغییراتی که مثلا میخوایم تو سل بدیم بهتر یاشه البته فقط نظره شخصی بود
کد:
' check VBA help under "PatternColorIndex Property"
' for a list of ColorIndex numbers you can use
' instead of this one:
Application.ScreenUpdating = False
Sheet2.Cells.Interior.ColorIndex = 0
Const MarkColor As Integer = 36
With Target.Cells.Interior
.ColorIndex = MarkColor
.Pattern = xlSolid
End With
'Cancel = True ' this line may be removed
' Excel's normal double-click action is to
' open the target cell for editing.
' This line cancels that action.
Application.ScreenUpdating = True
علاقه مندی ها (Bookmarks)