+ Reply to Thread
Results 1 to 3 of 3

copy columns vs. rows

  1. #1
    Registered User
    Join Date
    07-09-2010
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    32

    copy columns vs. rows

    Hello all,

    I've been working on a macro that combines raw data files. I'm only interested in certain columns of data within the raw files that can be in any order. I've used the following code to copy column data into my worksheet.

    Please Login or Register  to view this content.
    The problem is not all the columns are fully populated depending on the data and blanks get filled while looping through workbooks and misalign data.

    Is there a way I can loop through rows of a worksheet, if they contain some type of data, copy only those fields that match the column headings I want for that row (blanks are fine)? Data from the next workbook should start on the next row even if column A for example has 15 entries and column B has 20.

    This is basically starting the macro on a new slate for me, any help is most appreciated!!!

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: copy columns vs. rows

    Hi akq125

    I can't tell for sure what your trying to do since I can't see your data but you might try this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    07-09-2010
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: copy columns vs. rows

    Hello Jaslake,

    Thank you so much for your help. Your changes did the trick!

+ 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