Results 1 to 2 of 2

Thread: Swapping columns Error 2

  1. #1
    Junior Member
    Join Date
    Jul 2011
    Posts
    19
    Rep Power
    0

    Swapping columns Error 2

    I previously posted about a problem I was having with Rick's column swap macro (http://www.excelfox.com/forum/f22/sw...93/index2.html). Now I'm back again, with example included. My problem is my last column, "Subject". In the B4 picture, it's at the extreme right-end. In the "After" picture, it's still there, AND in column E, where it's supposed to go. But my "Contract Manager" column disappears.

    The macro, as configured, is in the attachment.
    Attached Files Attached Files
    Last edited by jomili; 11-16-2012 at 02:27 AM. Reason: Trying to delete an attachment, with no luck

  2. #2
    Junior Member
    Join Date
    Jul 2011
    Posts
    19
    Rep Power
    0
    Okay, I've achieved partial success by changing my column order to add the last column (AB, the one that disappears) twice:
    Code:
    Const NewOrder As String = "D,E,AD,AE,AF,AC,B,C,F,G,H,I,J,K,L,M,N,P,X,Y,Q,R,S,T,U,V,W,A,AA,O,Z,AB,AB"
    I'd like to know if this is a regular thing, or if there's a code change that could correct this. I don't understand Rick's code well enough to understand why it's having this problem.

Similar Threads

  1. Difference Between 'On Error GoTo 0' And 'On Error GoTo -1'
    By Transformer in forum Familiar with Commands and Formulas
    Replies: 7
    Last Post: 07-02-2015, 04:07 PM
  2. Swapping (Rearranging) Multiple Columns of Data
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 13
    Last Post: 07-15-2014, 05:21 AM
  3. Get External Data Error
    By marreco in forum Excel Help
    Replies: 2
    Last Post: 01-05-2013, 08:20 PM
  4. Swapping Multiple Columns of Data
    By jomili in forum Excel Help
    Replies: 5
    Last Post: 10-01-2012, 05:56 PM
  5. Excel Error
    By aarbuckle in forum Excel Help
    Replies: 5
    Last Post: 03-13-2012, 03:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •