+ Reply to Thread
Results 1 to 5 of 5

Post Selected Columns into next available column

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Post Selected Columns into next available column

    I am trying to write a macro that copies specific columns and then inserts them into the next available column. This is what I currently have
    Please Login or Register  to view this content.
    I'm getting selection not valid, I believe it's because its not selecting the entire column which i want it to do. Any suggestions? Thanks for the help.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Post Selected Columns into next available column

    your code works on my excel 2010, but you can change so:
    Please Login or Register  to view this content.
    otherwise attach a sample file
    Last edited by patel45; 05-31-2013 at 02:24 AM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Post Selected Columns into next available column

    column example.xlsm I couldn't send the exact file because it includes sensitive information but here is something similar to what I am working on, the macro kinda works in this example but its not in the one I'm working in. The macro copies the columns just fine but then fails when it tries to insert, i believe it has to do with the fact
    Please Login or Register  to view this content.
    selects a cell and not an entire column. is there a way to select the entire next available column and then insert the copied columns there?

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Post Selected Columns into next available column

    If the macro works in the example but not in the original attach the original with sensitive data changed

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Post Selected Columns into next available column

    Not sure why but now it's working, I didn't change a thing, Thanks for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1