Joël GARBE www.joelgarbe.fr "LeSteph" a écrit dans le message de news: %23RE3Ho$
Bonsoir Joël, ;-) amitiés du soir lSteph
"Joël GARBE" a écrit dans le message de news: 41a79658$0$783$
Bonsoir P;
tout ce que tu veux ici : http://www.excelabo.net/xl/calendriers.php#calendrier
Bonne recherche...
--
Bien cordialement,
Joël GARBE www.joelgarbe.fr "SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Est-ce que une telle application existe ?
Merci.
P;
AV
Sub calendrier() varAn = Val(InputBox("Année ?", "CALENDRIER")) Application.ScreenUpdating = False Col = 1 If varAn = 0 Then GoTo fin X = DateSerial(varAn, 1, 1) Y = DateValue("31 décembre " & varAn) For i = 0 To Y - X lg = lg + 1 Cells(lg, Col) = X + i If X + i = DateSerial(Year(X + i), Month(X + i) + 1, 1) - 1 Then Col = Col + 1 lg = 0 End If Next [A1].CurrentRegion.NumberFormat = "dddd dd/mm/yyyy" Cells.EntireColumn.AutoFit fin: End Sub
AV
Sub calendrier()
varAn = Val(InputBox("Année ?", "CALENDRIER"))
Application.ScreenUpdating = False
Col = 1
If varAn = 0 Then GoTo fin
X = DateSerial(varAn, 1, 1)
Y = DateValue("31 décembre " & varAn)
For i = 0 To Y - X
lg = lg + 1
Cells(lg, Col) = X + i
If X + i = DateSerial(Year(X + i), Month(X + i) + 1, 1) - 1 Then
Col = Col + 1
lg = 0
End If
Next
[A1].CurrentRegion.NumberFormat = "dddd dd/mm/yyyy"
Cells.EntireColumn.AutoFit
fin:
End Sub
Sub calendrier() varAn = Val(InputBox("Année ?", "CALENDRIER")) Application.ScreenUpdating = False Col = 1 If varAn = 0 Then GoTo fin X = DateSerial(varAn, 1, 1) Y = DateValue("31 décembre " & varAn) For i = 0 To Y - X lg = lg + 1 Cells(lg, Col) = X + i If X + i = DateSerial(Year(X + i), Month(X + i) + 1, 1) - 1 Then Col = Col + 1 lg = 0 End If Next [A1].CurrentRegion.NumberFormat = "dddd dd/mm/yyyy" Cells.EntireColumn.AutoFit fin: End Sub
AV
SRV
Merci à tous !
Phil.
"AV" a écrit dans le message de news: %
Merci à tous !
Phil.
"AV" <alainPFFFvallon@wanadoo.fr> a écrit dans le message de news:
%23K6HStE1EHA.2572@tk2msftngp13.phx.gbl...
Salut Tu trouveras sur le site de Frédéric http://frederic.sigonneau.free.fr/ un fichier "CalFr2.zip" qu'il faut adapter a ton application et qui est vachement bien fait. Je l'utilise dans toute les procedures ou je doit renseigner des dates.
A+ yannick
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Est-ce que une telle application existe ?
Merci.
P;
Salut
Tu trouveras sur le site de Frédéric http://frederic.sigonneau.free.fr/ un
fichier "CalFr2.zip" qu'il faut adapter a ton application et qui est
vachement bien fait.
Je l'utilise dans toute les procedures ou je doit renseigner des dates.
A+
yannick
"SRV" <srv@laposte.net> a écrit dans le message de news:
30pihaF331sh4U1@uni-berlin.de...
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X .
Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Salut Tu trouveras sur le site de Frédéric http://frederic.sigonneau.free.fr/ un fichier "CalFr2.zip" qu'il faut adapter a ton application et qui est vachement bien fait. Je l'utilise dans toute les procedures ou je doit renseigner des dates.
A+ yannick
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Est-ce que une telle application existe ?
Merci.
P;
Michel Pierron
Bonjour SRV; Dans le module ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Call MenuDelete End Sub
Private Sub Workbook_Open() Application.ScreenUpdating = False Call MenuDelete Dim CmdBar As CommandBar Dim CmdPopup As CommandBarPopup Dim CmdButton As CommandBarButton Dim iMonth As Integer, iDay As Integer Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop) For iMonth = 1 To 12 Set CmdPopup = CmdBar.Controls.Add(msoControlPopup) CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm") For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0)) Set CmdButton = CmdPopup.Controls.Add With CmdButton .Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd") .OnAction = ThisWorkbook.Name & "!DateSelect" .Style = msoButtonCaption End With Next iDay Next iMonth CmdBar.Visible = True Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing End Sub
Private Sub MenuDelete() On Error Resume Next Application.CommandBars("Calendar").Delete End Sub
Dans un module standard: Private Sub DateSelect() ActiveCell = DateSerial(Year(Date), Application.Caller(2), Application.Caller(1)) End Sub
MP
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Est-ce que une telle application existe ?
Merci.
P;
Bonjour SRV;
Dans le module ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Call MenuDelete
End Sub
Private Sub Workbook_Open()
Application.ScreenUpdating = False
Call MenuDelete
Dim CmdBar As CommandBar
Dim CmdPopup As CommandBarPopup
Dim CmdButton As CommandBarButton
Dim iMonth As Integer, iDay As Integer
Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop)
For iMonth = 1 To 12
Set CmdPopup = CmdBar.Controls.Add(msoControlPopup)
CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm")
For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0))
Set CmdButton = CmdPopup.Controls.Add
With CmdButton
.Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd")
.OnAction = ThisWorkbook.Name & "!DateSelect"
.Style = msoButtonCaption
End With
Next iDay
Next iMonth
CmdBar.Visible = True
Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing
End Sub
Private Sub MenuDelete()
On Error Resume Next
Application.CommandBars("Calendar").Delete
End Sub
Dans un module standard:
Private Sub DateSelect()
ActiveCell = DateSerial(Year(Date), Application.Caller(2),
Application.Caller(1))
End Sub
MP
"SRV" <srv@laposte.net> a écrit dans le message de
news:30pihaF331sh4U1@uni-berlin.de...
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X .
Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Private Sub Workbook_BeforeClose(Cancel As Boolean) Call MenuDelete End Sub
Private Sub Workbook_Open() Application.ScreenUpdating = False Call MenuDelete Dim CmdBar As CommandBar Dim CmdPopup As CommandBarPopup Dim CmdButton As CommandBarButton Dim iMonth As Integer, iDay As Integer Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop) For iMonth = 1 To 12 Set CmdPopup = CmdBar.Controls.Add(msoControlPopup) CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm") For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0)) Set CmdButton = CmdPopup.Controls.Add With CmdButton .Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd") .OnAction = ThisWorkbook.Name & "!DateSelect" .Style = msoButtonCaption End With Next iDay Next iMonth CmdBar.Visible = True Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing End Sub
Private Sub MenuDelete() On Error Resume Next Application.CommandBars("Calendar").Delete End Sub
Dans un module standard: Private Sub DateSelect() ActiveCell = DateSerial(Year(Date), Application.Caller(2), Application.Caller(1)) End Sub
MP
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Bonjour, Chapeau TRES bas ......! Celle-là va sûrement enrichir quelques collections.
-- Pounet95 on trouve tout ( ou presque ) http://www.excelabo.net/ "Michel Pierron" a écrit dans le message de news: %
Bonjour SRV; Dans le module ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Call MenuDelete End Sub
Private Sub Workbook_Open() Application.ScreenUpdating = False Call MenuDelete Dim CmdBar As CommandBar Dim CmdPopup As CommandBarPopup Dim CmdButton As CommandBarButton Dim iMonth As Integer, iDay As Integer Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop) For iMonth = 1 To 12 Set CmdPopup = CmdBar.Controls.Add(msoControlPopup) CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm") For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0)) Set CmdButton = CmdPopup.Controls.Add With CmdButton .Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd") .OnAction = ThisWorkbook.Name & "!DateSelect" .Style = msoButtonCaption End With Next iDay Next iMonth CmdBar.Visible = True Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing End Sub
Private Sub MenuDelete() On Error Resume Next Application.CommandBars("Calendar").Delete End Sub
Dans un module standard: Private Sub DateSelect() ActiveCell = DateSerial(Year(Date), Application.Caller(2), Application.Caller(1)) End Sub
MP
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Est-ce que une telle application existe ?
Merci.
P;
Bonjour,
Chapeau TRES bas ......!
Celle-là va sûrement enrichir quelques collections.
--
Pounet95
on trouve tout ( ou presque ) http://www.excelabo.net/
"Michel Pierron" <michel.pierron@free.fr> a écrit dans le message de news:
%23c512JH1EHA.3324@tk2msftngp13.phx.gbl...
Bonjour SRV;
Dans le module ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Call MenuDelete
End Sub
Private Sub Workbook_Open()
Application.ScreenUpdating = False
Call MenuDelete
Dim CmdBar As CommandBar
Dim CmdPopup As CommandBarPopup
Dim CmdButton As CommandBarButton
Dim iMonth As Integer, iDay As Integer
Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop)
For iMonth = 1 To 12
Set CmdPopup = CmdBar.Controls.Add(msoControlPopup)
CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm")
For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0))
Set CmdButton = CmdPopup.Controls.Add
With CmdButton
.Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd")
.OnAction = ThisWorkbook.Name & "!DateSelect"
.Style = msoButtonCaption
End With
Next iDay
Next iMonth
CmdBar.Visible = True
Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing
End Sub
Private Sub MenuDelete()
On Error Resume Next
Application.CommandBars("Calendar").Delete
End Sub
Dans un module standard:
Private Sub DateSelect()
ActiveCell = DateSerial(Year(Date), Application.Caller(2),
Application.Caller(1))
End Sub
MP
"SRV" <srv@laposte.net> a écrit dans le message de
news:30pihaF331sh4U1@uni-berlin.de...
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X .
Sous la forme d'un petit tableau avec les mois, jours,dates etc ....
Bonjour, Chapeau TRES bas ......! Celle-là va sûrement enrichir quelques collections.
-- Pounet95 on trouve tout ( ou presque ) http://www.excelabo.net/ "Michel Pierron" a écrit dans le message de news: %
Bonjour SRV; Dans le module ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean) Call MenuDelete End Sub
Private Sub Workbook_Open() Application.ScreenUpdating = False Call MenuDelete Dim CmdBar As CommandBar Dim CmdPopup As CommandBarPopup Dim CmdButton As CommandBarButton Dim iMonth As Integer, iDay As Integer Set CmdBar = Application.CommandBars.Add("Calendar", msoBarTop) For iMonth = 1 To 12 Set CmdPopup = CmdBar.Controls.Add(msoControlPopup) CmdPopup.Caption = Format(DateSerial(1, iMonth, 1), "mmmm") For iDay = 1 To Day(DateSerial(Year(Date), iMonth + 1, 0)) Set CmdButton = CmdPopup.Controls.Add With CmdButton .Caption = Format(DateSerial(Year(Date), iMonth, iDay), "dd/mm/yy - dddd") .OnAction = ThisWorkbook.Name & "!DateSelect" .Style = msoButtonCaption End With Next iDay Next iMonth CmdBar.Visible = True Set CmdButton = Nothing: Set CmdPopup = Nothing: Set CmdBar = Nothing End Sub
Private Sub MenuDelete() On Error Resume Next Application.CommandBars("Calendar").Delete End Sub
Dans un module standard: Private Sub DateSelect() ActiveCell = DateSerial(Year(Date), Application.Caller(2), Application.Caller(1)) End Sub
MP
"SRV" a écrit dans le message de news:
Bonsoir
Je cherche un générateur de calendrier sous Excel pour une année X . Sous la forme d'un petit tableau avec les mois, jours,dates etc ....