do while loop
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
|