Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For entering credit payment dates
On a userform I have a control which displays "Date" with a calenda control to change the value. If the day value is between the 1st and 15th inclusive, of the month chosen, then I require that a listbox is populated with the result o textbox "total amount" divided by textbox "number of payments according to the 2nd of the consecutive month chosen for the "number o payments" as number of rows in listbox. If the day value is between 16th and Last day of month then the paymen date will be the 8th of the consecutive month. Is such a date calculation possible and if so then how -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
Dim d As Date d = Now 'or whatever in your code If Day(d) 16 Then MsgBox " The owls are not what they seem to be" Else MsgBox "Doh!!" End If End Sub HTH. Best wishes Harald "christobal " skrev i melding ... For entering credit payment dates On a userform I have a control which displays "Date" with a calendar control to change the value. If the day value is between the 1st and 15th inclusive, of the month chosen, then I require that a listbox is populated with the result of textbox "total amount" divided by textbox "number of payments" according to the 2nd of the consecutive month chosen for the "number of payments" as number of rows in listbox. If the day value is between 16th and Last day of month then the payment date will be the 8th of the consecutive month. Is such a date calculation possible and if so then how? --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The date issue is clear now but how can I pass the required dates afte
calculating the payment day value to a listbox showing the consecutiv payments according to the number of payments Date = 1/1/2004 Total = 450 Payments =3 i.e. 2/2/2004 150$ 2/3/2004 150$ 2/4/2004 150 -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use if functions with dates | Excel Worksheet Functions | |||
Dates and IF Functions | Excel Worksheet Functions | |||
If functions and dates | Excel Worksheet Functions | |||
If functions for dates | Excel Worksheet Functions | |||
worksheet functions with dates | Excel Worksheet Functions |