Delete every nth column from the worksheet

G

garyusenet

Hello I want to delete every nth column from a worksheet

can someone tell me how this is done please.


thanks.

p.s. can someone also tell me how to select every nth column.
 
B

Bob Phillips

For i = 100 to 1 step -5
Columns(i).Delete
Next i

adjust to suit

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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