Moving columns about

  • Thread starter Thread starter green biro
  • Start date Start date
G

green biro

I need to reorder some columns on my worksheet along the lines of the
following:
- First 12 columns fixed
- Next, any coumns that have the text "essential" in the column header
- Next, any columns that have the text "important" in the column header
- Next any columns where the header doesn't contain "essential", "important"
or "unimportant"
- Lastly any columns that contain the text "unimportant"

I dabbled with "cut destination:" without success. The main problem being
that it's difficult to move columns whilst enumerating through them.

My next idea is to temporarily add a row, assign values in this row
according to content of column header, sort columns by the new row then
delete the new row. That seems like an awful lot of programming though.

Does anybody have anything slicker that they could share with me?

Thanks in anticipation.

BT
 
How about a macro to just insert a row at the top>use a select case to put
a,b,c,etc based on your criteria>sort left to right>delete the row(if
desired-or hide)
 

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

Back
Top