first macro
Posted by kathleen on January 30, 2001 6:28 AM
hello
very simple for most of you, but this is first writing in visual basic
i want to delete 17 rows every 24 rows of data, to finish with 8760 rows of data
this is my code for macro erase17, something is wrong....
Sub erase17()
'
' erase17 Macro
' Macro enregistrée le 1/30/2001 par Cenerg
'
'
For q = 25 To 8737 Step 24
y = q + 25
Rows("q:y").Select
Selection.Delete Shift:=xlUp
Next q
End Sub
I do not know if and how you declare variables in visual basic, i can only code in C. i continue to get an error on the line
Rows("q:y").Select
thanks in advance
kph