Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

functin for 14th working day of every month

Status
Not open for further replies.

mathangisankar

Technical User
Feb 17, 2008
7
any help is great for me
function gives the resule of the date of 14th working day of every month
 




Hi,

What have you go so far?

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 





Actually, check out the WORKDAY function in the Analysis Toolpac addin.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
first staring itself enter 14the working day
so i just enter manually sendkeys <manually enter>
but i need the functin for that
i found this code from this site only is it anything i can modify this code getting 14th wroking day.
Sub Main
dtmScrape = datevalue("01/22/2008")
dtmScrape = Format(dtmScrape,"mm/dd/yyyy")
If ElseIf day(dtmScrape) < 8 Then
MsgBox "<8"
sDay = "14"
sMonth = Left(dtmScrape,2)
End If
If sMonth = "0" Then sMonth = "12"
dtmScrape = dateValue(sMonth & "/" & sDay & "/" & right(dtmScrape,4))
dtmScrape = Format(dtmScrape,"mm/dd/yyyy")
MsgBox dtmScrape
dtmScrape = Format(dtmScrape,"dd/mm/yyyy")
MsgBox dtmScrape
End Sub
 



Forget VBA. Use the WORKDAY Function in the Analysis ToolPac Addin.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
you are saying should addin fuction in excel sheet.
is ir right skip.
 



Yes, it is a simple spreadsheet function.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top