Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mary
I have writen a macro which is not working properly With Worksheets(1).Range("d1:d500") Set c = .Find("text39:", LookIn:=xlValues) If Not c Is Nothing Then firstaddress = c.Address Do Set c = ActiveCell Selection.Delete Shift:=xlToLeft 'c.Activate ActiveSheet.Cells(c.Row, 3).Select MsgBox (c.Value) ActiveCell.FormulaR1C1 = "=R[-1]C" Set c = .FindNext(c) c.Activate Loop While Not c Is Nothing And c.Address < firstaddres End If End With End Sub this will help to understand what i am looking for. "saravanan" wrote: i want create loop for the below. I have excel sheets contain data as below HW INF text39: 50 MS UP text39: 40 the macro should move value the infront of text39: to the text39 cell and copy the of HW INF in the same row can any only help me. regards saravanan |
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 | |||
For/Loop skipping one value in loop only | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |