Thread
:
Cut and Paste, VB
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
Posts: 10,124
Cut and Paste, VB
a bit simpler. Change range to your range name and the destination cell.
Sub cutpaste()
Range("d2:d5").Cut Destination:=Range("c2")
End Sub
--
Don Guillett
SalesAid Software
"Danny" wrote in message
...
Hi,
I recorded my step-by-step entries and changed some of the commands as
follows:
Sub Macro1()
'Range("Q95:Q99").Select = This code was replaced with:
Range("Mo_401k").Select
Application.CutCopyMode = False
Selection.Cut
'Range("Q96").Select = This code was replaced with:
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
End Sub
Even if i don't change some of the commands, the macro does not run and
always highlights "Activesheet.Paste" as the error.
Please help
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett