Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Now it's doing this :
ENG . ENG . ENG . ENG . .. . . . . . . . .. . . . . . . . ENG . ENG . ENG . ENG . ![]() It needs to be one or the other out of the following: ENG ENG ENG ENG ENG ENG ENG ENG or .. . . . . . . . If it meets the criteria it places one of the above into the next 8 cells. Or if it does not meet the criteria it can just skip to the ext row, but if it created and partial cells i.e. ENG ENG ENG(3) They need to be set back to . I tried the exact code you have here because it makes perfect sense.... will not work. With Sheet236 For x = 11 To 298 counter = 0 did = False For n = 1 To timeStart If .Cells(x, n).Value = "ENG" Then did = True End If Next n If .Cells(x, skilly).Value = "x" And did = False Then For y = timeStart To timeStart + 7 If Application.CountIf(.Cells(x, y).Offset(0, 1).Resize(1, 8), ".") = 8 _ And .Cells(x, y).Value = "." _ And counter < 8 _ And need 0 Then ..Cells(x, y).Offset(0, 1).Resize(1, 8).Value = "ENG" counter = counter + 1 need = need - 1 Else ..Cells(x, y).Offset(0, 1).Resize(1, 8).Value = "." End If Next y End If Next x End With --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OFFSET Range | Excel Worksheet Functions | |||
OFFSET and range addresses | Excel Discussion (Misc queries) | |||
Using Offset to name a range | Excel Worksheet Functions | |||
range offset | Excel Programming | |||
dynamic range without using OFFSET() | Excel Programming |