An Introduction to Excel VBA Programming: with Applications in Finance and Insurance by Guojun Gan
Author:Guojun Gan [Gan, Guojun]
Language: eng
Format: azw3, epub
Publisher: CRC Press
Published: 2017-05-08T04:00:00+00:00
2
Dim iWd As Integer
3
iWd = Weekday (datIn)
4
If iWd = vbSaturday Or iWd = vbSunday Then
5
IsWeekend = True
6
Else
7
IsWeekend = False
8
End If
9
End Function
The function IsWeekend returns true if the input date is a weekend. We can test this function as follows:
1
Sub TestIsWeekend ()
2
Dim i As Integer
3
For i = 1 To 7
4
Debug . Print IsWeekend (DateSerial (2016, 5, i)) & " ";
5
Next i
6
End Sub
Executing the above sub procedure gives
1
True False False False False False True
Download
An Introduction to Excel VBA Programming: with Applications in Finance and Insurance by Guojun Gan.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Secrets of Successful Financial Planning by Dan Gallagher(1404)
A Knight's Reward by Catherine Kean(1265)
An American Sickness by Elisabeth Rosenthal(1180)
Against the Gods by Peter L. Bernstein(1035)
America's Bitter Pill: Money, Politics, Backroom Deals, and the Fight to Fix Our Broken Healthcare System by Steven Brill(1010)
FREAKONOMICS by levitt steven d(995)
SuperFreakonomics by Steven D. Levitt(993)
America's Bitter Pill by Steven Brill(972)
Risk Management Framework by James Broad(962)
Strategic Risk Taking: A Framework for Risk Management by Aswath Damodaran(944)
2019 Social Security & Medicare Facts by Michael D. Thomas(942)
A Practical Introduction to Security and Risk Management by Bruce Oliver Newsome(941)
Game Changers by Rudolf Taschner(908)
How Our Days Became Numbered: Risk and the Rise of the Statistical Individual by Dan Bouk(886)
The New Frontier Investors by Jagdeep Singh Bachher Adam D. Dixon & Ashby H. B. Monk(882)
The 8 Characteristics of the Awesome Adjuster by Carl van Lamsweerde(867)
SUPERFREAKONOMICS by levitt steven d(859)
The Globetrotter's Guide to Travel Insurance: Travel Smarter, Pay Less, Get the Right Coverge (The Savvy Traveler Series Book 1) by Bauche Michael & Bauche Yvonne(844)
The Advisor Playbook: Regain Liberation and Order in your Personal and Professional Life by Duncan MacPherson & Chris Jeppesen(822)
