Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
In my worksheet my data looks like this: Column A Column B Gen 50 Ex 31 Lev 44 Num 25 Deu 36 In ColumnA and ColumnB my data goes down 66 rows. I'm tring to put my data beginning in ColumnC after finding next blank cell then move over to next column like this: ColumnC ColumnD ColumnE ColumnF Gen 1-3 Ex 1-3 Lev 1-3 Num 1-3 Gen 4-6 Ex 4-6 Lev 4-6 Num 4-6 Gen 7-9 Ex 7-9 Lev 7-9 Num 7-9 Gen 10-12 Ex 10-12 Lev 10-12 Num 10-12 until 50 is reached until 31 is reached until 44 is reached until 25 is reached Here is the code I have so far but it is not working correctly. Sub aBibleRead() Dim BN As Range, TBC As Range Dim v As Long, v2 As Long, v3 As Long, v4 As Long For Each BN In Range("A1:A6") For Each TBC In Range("B1:B6") For v = 1 To TBC For v2 = 3 To TBC For v3 = v + 3 To TBC For v4 = v2 + 3 To TBC Range("E65536").End(xlUp).Offset(1, 0).Select ActiveCell.Value = BN & " " & v3 & "-" & v4 Next v4 Next v3 Next v2 Next v Next TBC Next BN End Sub Thank you for your help, jfcby |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
EXcel 2000 IF-AND Statement | Excel Discussion (Misc queries) | |||
Multiple calculations within cell? Writing in Excel 2000, using inExcel 2003 | Excel Worksheet Functions | |||
Calendar change month from multiple sheets to one sheet, Excel 2000 & 2003 | Excel Programming | |||
If statement combine, Excel 2000 & 2003 | Excel Programming | |||
How do you run a Macro from an IF statement in Excel 2000? | Excel Worksheet Functions |