View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_7_] Bob Phillips[_7_] is offline
external usenet poster
 
Posts: 1,120
Default Simple Cut & Paste Macro needed :)

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Address = "$A$4" Then
If Target.Value < 1 Then
Columns("B:H").Copy Columns("A:G")
End If
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.





--
HTH

Bob Phillips

"dstock" wrote in
message ...

Easy Example: What I basically need is when the value of cell A4 < 1, it
will cut and paste the ENTIRE rows B-H to now be rows A-G

Any help appreciated, thanks!


--
dstock
------------------------------------------------------------------------
dstock's Profile:

http://www.excelforum.com/member.php...o&userid=24225
View this thread: http://www.excelforum.com/showthread...hreadid=380981