Está en la página 1de 7

Yearly Calendar

enero 2014 - diciembre 2014

enero 2014
Dom Lun

Mar

Mie

Jue

Vie

Sab

febrero 2014
Dom Lun

Mar

Mie

Jue

Vie

Sab

marzo 2014
Dom Lun

Mar

Mie

Jue

Vie

10

11

12

13

14

15

16

17

18

10

11

12

13

14

15

10

11

12

13

14

15

19

20

21

22

23

24

25

16

17

18

19

20

21

22

16

17

18

19

20

21

22

26

27

28

29

30

31

23

24

25

26

27

28

23

24

25

26

27

28

29

30

31

Mie

Jue

Vie

Sab

abril 2014
Dom Lun

Jue

Vie

Sab

Sab

mayo 2014

Mar

Mie

Dom Lun

10

11

12

Mar

Mie

Sab

junio 2014
Dom Lun

Mar

Jue

Vie

10

10

11

12

13

14

13

14

15

16

17

18

19

11

12

13

14

15

16

17

15

16

17

18

19

20

21

20

21

22

23

24

25

26

18

19

20

21

22

23

24

22

23

24

25

26

27

28

27

28

29

30

25

26

27

28

29

30

31

29

30

Vie

Sab

Vie

Sab

julio 2014
Dom Lun

Mar

Mie

Jue

Vie

Sab

agosto 2014
Dom Lun

Mar

Mie

Jue

septiembre 2014
Dom Lun

Mar

Mie

Jue

10

11

12

10

11

12

13

13

14

15

16

17

18

19

10

11

12

13

14

15

16

14

15

16

17

18

19

20

20

21

22

23

24

25

26

17

18

19

20

21

22

23

21

22

23

24

25

26

27

27

28

29

30

31

24

25

26

27

28

29

30

28

29

30

Sab

Vie

Sab

31

octubre 2014
Dom Lun

Mar

10

Mie

Jue

Vie

Sab

10

11

12

13

14

15

16

17

19

20

21

22

23

24

26

27

28

29

30

31

noviembre 2014
Dom Lun

11

Mar

Mie

Jue

Vie

diciembre 2014
Dom Lun

Mar

Mie

12

Jue

10

11

12

13

18

10

11

12

13

14

15

14

15

16

17

18

19

20

25

16

17

18

19

20

21

22

21

22

23

24

25

26

27

23

24

25

26

27

28

29

28

29

30

31

30

Date Formulas
Months

startDate

1/1/2014

Enero
Marzo

Month
MonthNames:
Names:
This
Thisnamed
namedrange
range(months)
(months)
isisused
usedas
asthe
theinput
inputfor
forthe
the
combo
combobox.
box.

Abril
Mayo
Junio

Pascua:
Pascua:
Este
Estecodigo
codigocalc
cal
domingo
domingode
deres
re

The
TheStart
StartDate:
Date:
This
Thisnamed
namedformula
formula(startDate)
(startDate)isis
the
first
day
of
the
first
the first day of the firstmonth
monthin
in
the
theyearly
yearlycalendar,
calendar,defined
definedby
bythe
the
month
monthand
andyear
yearchosen
chosenby
bythe
the
user.
user.

Febrero

Julio
Agosto
Septiembre
Octubre
Noviembre
Diciembre

Method for creating a monthly calendar without using arrays


enero 2014
Sun
1
1
2
3
4
5
6

Mon
2

Tue
3

Using arrays

Wed
4

Thu
5

Fri
6

Sat
7

enero 2014
S

10

11

12

13

14

15

16

17

18

12

19

20

21

22

23

24

25

19

26

27

28

29

30

31

monthNames startDates
January

1/1/2014

February

2/1/2014

March

3/1/2014

April

4/1/2014

May

5/1/2014

June

6/1/2014

July

7/1/2014

August

8/1/2014

September

9/1/2014

October

10/1/2014

November

11/1/2014

December

12/1/2014

January

1/1/2015

February

2/1/2015

March

3/1/2015

April

4/1/2015

May

5/1/2015

June

6/1/2015

July

7/1/2015

August

8/1/2015

September

9/1/2015

How
HowititWorks:
Works:
This
Thiscalendar
calendarisisincluded
includedto
toshow
showhow
howthe
themore
more
complex
complexarray
arrayfunction
functionworks.
works.Note
Notethe
theuse
useof
of
mixed
mixedabsolute
absoluteand
andrelative
relativereferences
referencesthat
that
enable
enableyou
youto
tocopy
copythe
theformula
formuladown
downand
andacross.
across.
This
Thisisisbasically
basicallywhat
whatthe
thearray
arrayformula
formulaisisdoing
doing
for
foryou.
you.

Adding
Addingadditional
additionalmonths:
months:
Insert
a
new
Insert a newrow
row(before
(beforethe
the
last
lastmonth
monthin
inthe
thelist)
list)and
and
copy
copythe
theformulas
formulasdown.
down.

26

Adding
Addingadditional
additionalmonths:
months:
Insert
Insertaanew
newrow
row(before
(beforethe
the
last
lastmonth
monthin
inthe
thelist)
list)and
and
copy
copythe
theformulas
formulasdown.
down.
October

10/1/2015

November

11/1/2015

December

12/1/2015

January

1/1/2016

February

2/1/2016

Pascua:
Pascua:
Este
Estecodigo
codigocalcula
calculalalafecha
fechadel
del
domingo
domingode
deresurreccin.
resurreccin.

Using arrays

enero 2014
M

Th

Sa
4

10

11

13

14

15

16

17

18

20

21

22

23

24

25

27

28

29

30

31

Codigo fuente para calcular el domingo de pascua


Function pascua(a As Integer) As Date
b = a - 1900
c = b Mod 19
d = Int((7 * c + 1) / 19)
e = (11 * c - d + 4) Mod 29
f = Int(b / 4)
g = (b + f - e + 31) Mod 7
pascua = DateSerial(a, 3, 31) + (25 - g - e)
End Function

También podría gustarte