Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi I was wondering if anyone could help me trouble shoot my code. I'm trying
to place specific text "LBC04" in blank cells using a Do While Loop to determine the appropiate cells. I've used the following code successfully numerous times, however, in this situation the "LBC04" is not being entered into the cells. The Loop looks like it's working correctly, however, the text just isn't being placed in the cells. Can anyone see a problem with my code? Public Sub TEST10() [M7].Select Do While ActiveCell.Offset(0, -1).Value "" If ActiveCell.Value = "" Then ActiveCell.Value = "LBC04" End If ActiveCell.Offset(1, 0).Select Loop End Sub -- Regards, timmulla |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Advancing outer Loop Based on criteria of inner loop | Excel Programming | |||
Loop Function unable to loop | Excel Programming | |||
Problem adding charts using Do-Loop Until loop | Excel Programming | |||
Worksheet_Change - loop within a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |