Hi Guys,
I have a large spreadsheet where I have many deletion macros - basically they are removing records that have specific value in G column).
For that I am using following macros:
I have around 10 macros like the one above and then I am calling them with one button:
Is it possible to merge all those macros into one and then assign only one macro to the button ? Probably that would be much more efficient that running them separately
I have a large spreadsheet where I have many deletion macros - basically they are removing records that have specific value in G column).
For that I am using following macros:
Code:
Sub macro1()
Dim i As Integer
For i = 1000 To 1 Step -1
If Range("G" & i).Value = "text" Then
Range("A" & i & ":O" & i).Delete Shift:=xlUp
End If
Next i
End Sub
I have around 10 macros like the one above and then I am calling them with one button:
Code:
Sub buttonMacro()
Call macro1
Call macro2
Call macro3
Call macro4
Is it possible to merge all those macros into one and then assign only one macro to the button ? Probably that would be much more efficient that running them separately