Just a quick question,
Since I've been learning arrays I've tried to interject them into places where I can.
For example here, I am deleting certain columns based on their column number, pre-set in an array.
How could this code be even simpler or easier? I just want to learn how to fry a fish differently.
Since I've been learning arrays I've tried to interject them into places where I can.
For example here, I am deleting certain columns based on their column number, pre-set in an array.
Code:
Dim cols As Variant
Dim counter As Double
Dim Top As Double
cols = Array(8, 5, 3)
Top = UBound(cols)
For counter = 0 To Top
Columns(cols(counter)).Delete
Next counter
How could this code be even simpler or easier? I just want to learn how to fry a fish differently.