DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub CmdBtnGroup_Click()
ActiveSheet.Unprotect
If Month(CDate(CmdBtnGroup.Tag)) <> frmCalendar.CB_Mth.ListIndex + 1 Then
Select Case _
MsgBox("The selected date is not in the currently selected month." _
& vbNewLine & "Continue?", _
vbYesNo Or vbExclamation Or vbDefaultButton1, "Date check")
Case vbYes
If g_bForm Then
GoTo on_Form
Else: GoTo addDate
End If
Case vbNo
Exit Sub
End Select
Else:
If g_bForm Then
GoTo on_Form
Else: GoTo addDate
End If
addDate:
With ActiveCell
.Value = CDate(CmdBtnGroup.Tag)
.EntireColumn.AutoFit
End With
GoTo chg_month
on_Form:
g_sDate = CmdBtnGroup.Tag
chg_month:
With frmCalendar.CB_Mth
.ListIndex = Month(CmdBtnGroup.Tag) - 1
End With
End If
Unload frmCalendar
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
False
End Sub
teşekkür ederim vardar07 süper çalışıyor ofis 2010 da da çalışır inşallah..