Hi
I have a wierd problem, may be weird for me but simple for all excel/vba gurus.
I have 10-15 tabs in a worksheet, I need a loop/macro which leaves the first 3 sheets in the right most side, and from 4th tab onwards, it runs a loop which puts a vlookup formulae in coloum A which have some value in corresponding coloum B. I thought the loop would worked, so I prepared the following code. But this loop is only taking me to previous sheets, but not running the formulae loop inside each worksheet.
Any help in this would be appreciable.
Do
If ActiveSheet.Previous.Select = True Then
Range("B2").Select
Do
If IsEmpty(ActiveCell) = False Then
ActiveCell.Offset(-1, 0).Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[2],Responsible!C:C[4],4)"
ActiveCell.Offset(1, 1).Select
End If
Loop Until IsEmpty(ActiveCell) = True
Cells.EntireColumn.AutoFit
Range("A1").Select
ActiveSheet.Next.Select
End If
Loop Until ActiveSheet.Previous.Select = False
Bookmarks