N
nir020
I am trying to write a macro that deletes every other row in spreadsheet, I
have written the following code
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 15/11/2006 by readn
'
'
Dim M As Range
Dim n As Integer
n = 9
Set M = Range("n.value:n.value")
For a = 1 To 150
M.Select
Selection.Delete Shift:=xlUp
n=n+2
Next a
End Sub
But I cannot get to work, any suggestions?
have written the following code
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 15/11/2006 by readn
'
'
Dim M As Range
Dim n As Integer
n = 9
Set M = Range("n.value:n.value")
For a = 1 To 150
M.Select
Selection.Delete Shift:=xlUp
n=n+2
Next a
End Sub
But I cannot get to work, any suggestions?