I wrote the following code for a macro, to select alternate rows for the 300 rows in my worksheet:
-------------![]()
Sub Macro1() ' ' Macro1 Macro ' Macro recorded 27-12-2007 by Siddhant Batra ' Dim a As String Dim b As Long ' a = "1:1" For b = 3 To 1000 Step 2 a = a & "," & Str(b) & ":" & Str(b) Next b Range(a).Select End Sub
But it gives me the error "Run time error 1004: Method 'Range' of object '_Global' failed"
Please help, you must have made out that I'm an amateur
Bookmarks