View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ktpack[_5_] ktpack[_5_] is offline
external usenet poster
 
Posts: 1
Default Rearrange columns using VBA


I know that i can just record a macro that moves columns around.
However, I want one that allows me to put them in a certain order based
on criteria i define. For example, my columns might sometimes come into
my spreadsheet as B,C,D,A,G,H,I,F and other times as F,B,C,A,D,E,H,I.
How can I create a macro that reorganizes them after they've come in? i
don't want them to show alphabetically, i just want them to show in the
order that I designate.

Any help would be appreciated. I am fairly new at this and am tired of
jerry-rigging things to make them appear to work.


--
ktpack
------------------------------------------------------------------------
ktpack's Profile: http://www.excelforum.com/member.php...o&userid=12167
View this thread: http://www.excelforum.com/showthread...hreadid=387640