Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a userform which takes input from user like start date and en
date.once I have those I want to find the difference and fill the star date in A1 and A2 with next day, go on till I reach end date how do I d that? format of the date 08/06/2004 Code ------------------- Sheet3.Activate Range("B1").Select ActiveCell.Value = frmCalendar.txtCalendar.Value Do ActiveCell.Offset(0, 1).Select ActiveCell.Value = frmCalendar.txtCalendar.nextDay Loop Until (ActiveCell.Value = frmCalendar1.txtCalendar1.Value ------------------- If I do That it gives error type mismatch erro -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Patty,
Sheet3.Activate nowDate = frmCalendar.txtCalendar.Value i=1 Do With Cells( i,1) .Value = nowDate .numberformat = "m/dd/yyyy") End With nowDate = nowDate + 1 i = i + 1 Loop Until nowDate frmCalendar1.txtCalendar1.Value -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Patty2005 " wrote in message ... I have a userform which takes input from user like start date and end date.once I have those I want to find the difference and fill the start date in A1 and A2 with next day, go on till I reach end date how do I do that? format of the date 08/06/2004 Code: -------------------- Sheet3.Activate Range("B1").Select ActiveCell.Value = frmCalendar.txtCalendar.Value Do ActiveCell.Offset(0, 1).Select ActiveCell.Value = frmCalendar.txtCalendar.nextDay Loop Until (ActiveCell.Value = frmCalendar1.txtCalendar1.Value) -------------------- If I do That it gives error type mismatch error --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Function to lookup date on tab in excel and populate date on calen | Excel Worksheet Functions | |||
Populate excel sheet based on values in a separate sheet | Excel Discussion (Misc queries) | |||
Populate order sheet with data from work sheet | Excel Worksheet Functions | |||
How to populate prices in sheet two based on cost in sheet one | Excel Worksheet Functions | |||
Best way to extract data on one sheet & populate it on another sheet?????? | Excel Programming |