Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this :-
Code ------------------- Sub test() Dim FromSheet As Worksheet Dim ToSheet As Worksheet Dim FromRow As Long Dim Torow As Long '- Dim FromDate As Date Dim ToDate As Date Dim Days As Integer '------------------------- Set FromSheet = ActiveSheet FromRow = 2 Set ToSheet = Worksheets("Detail") Torow = 2 While FromSheet.Cells(FromRow, 1).Value < "" FromDate = FromSheet.Cells(FromRow, 2).Value Days = FromSheet.Cells(FromRow, 4).Value For d = 0 To Days ToSheet.Cells(Torow, 1).Value = _ FromSheet.Cells(FromRow, 1).Value ToSheet.Cells(Torow, 2).Value = FromDate + d ToSheet.Cells(Torow, 3).Value = _ FromSheet.Cells(FromRow, 5).Value Torow = Torow + 1 Next FromRow = FromRow + 1 Wend MsgBox ("Done") End Sub ------------------- -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need my formula to analyse numerical and text data | Excel Discussion (Misc queries) | |||
Formula - Analyse range, return unique value | Excel Worksheet Functions | |||
how do you use a chisquare function to analyse data | Excel Worksheet Functions | |||
how do I analyse two spreadsheets for missing data? | Excel Discussion (Misc queries) | |||
How do i analyse visible rows only in excel? | Excel Worksheet Functions |