jaianth2011jan
New Member
- Joined
- Jan 15, 2011
- Messages
- 4
But the same macro wen run in excel 2004/2007 runs properly without any problem. Can any1 please help me out to clear the problem as soon as possible.
Below given is that piece of code:
Sub HORtoVER6DATA()
'
' HORtoVER6DATA Macro
'
' Keyboard Shortcut: Ctrl+Shift+Q
'
ActiveCell.Range("A1:A6").Select
Selection.Copy
ActiveCell.Offset(6, 0).Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Cut
ActiveCell.Offset(0, 1).Range("A1").Select
ActiveSheet.Paste
Selection.Copy
ActiveCell.Offset(-5, 0).Range("A1").Select
ActiveSheet.Paste
Selection.Cut
ActiveCell.Offset(5, -1).Range("A1").Select
ActiveSheet.Paste
ActiveCell.Offset(-6, 1).Range("A1:A12").Select
Selection.ClearContents
ActiveCell.Offset(6, -1).Range("A1").Select
End Sub