Macro Query

Bradley H Callender

Board Regular
Joined
Aug 5, 2010
Messages
120
Hi what macro code can i use to do the following:

when conditional formatting meets or is greater than 60
the value in that cell cuts and paste into another cell.


Thanks
Best Regards
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try this

Code:
Sub MoveData()
Dim i As Long
For i = 6 To 209
    With Range("V" & i)
        If .Value > 60 Then .Cut Destination:=.Offset(, 3)
    End With
Next i
End Sub
 
Upvote 0
Great works perfectly.

Ok i have values in V6:V209 and i want the values in V range to move to Y6:Y209 if the conditional formatting is >60 in Range AE6:AE209
 
Upvote 0
Try

Code:
Sub MoveData()
Dim i As Long
For i = 6 To 209
    With Range("AE" & i)
        If .Value > 60 Then .Offset(, -9).Cut Destination:=.Offset(, -6)
    End With
Next i
End Sub
 
Upvote 0
That works without error for me. Are there error values like #N/A in column AE?
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,678
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top