Delete columns

D

David

TIA for any help
I have a one dimension array populated with integers (i)
which correspond to column index numbers where each column
requires deleting. The low values in the array are for
columns on sheets(1), The higher values are on sheets(2)
and above. The rule is:
Sheets(n) = Sheets(Worksheetfunction.Roundup(MyArray
(i)/200))
I can loop through the array and get sheets(number) and
columns (number). However, if I delete a column at each
step then the original column number relationship is lost
after step one. I think I need to assemble the aray
elements into a non contiguous range object, one for each
sheet, and then delete all columns at once. The trouble is
the text string will be to long for a text range argument.
There must be another way ... any ideas?
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top