Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting the text without deleting the formula | Excel Worksheet Functions | |||
Deleting cell data without deleting formula | Excel Discussion (Misc queries) | |||
deleting values in a worksheet without deleting the formulas | Excel Worksheet Functions | |||
how prevent formula in cell from deleting when deleting value???? | New Users to Excel | |||
Deleting Hyphens or Dashes from multiple cells without deleting the remaining content | Excel Programming |