+ Reply to Thread
Results 1 to 7 of 7

Program that finds a header then displays that column on another WS

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    ID - Idaho
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Program that finds a header then displays that column on another WS

    The vendor I get one of my reports from is constantly rearranging the columns of their report.

    My plan is to paste that Vendor report onto a designated worksheet within my Template Workbook. I need to create a program that will search for a Specific Column Header on the Vendor report, copy that column, and display it on the primary worksheet. There are a total of 5 columns I need to this for. Currently, after I download the Vendor report, I manually copy each column individually and paste it into my template.

    I can write formulas and record basic macros, but know absolutely nothing about writing in Visual Basic. Because the column locations constantly change a simply macro wont work. But the Headers are constant.

    The Columns Highlighted in Yellow are what I need to find and display.

    Thank You!
    Attached Files Attached Files
    Last edited by westerla; 12-21-2011 at 05:52 PM. Reason: Add Information and Clarify

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Program that finds a header then displays that column on another WS

    Hi

    Which sheet in your example file is which? Which is the vendor report, which is the sheet the columns have to be copied to, and which is the final output sheet?

    rylo

  3. #3
    Registered User
    Join Date
    12-21-2011
    Location
    ID - Idaho
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Program that finds a header then displays that column on another WS

    Thank you for taking the time to look.

    The Vendor Data is on the IBPAgentReport WS. The final Output sheet is the first WS of the Workbook. The first 5 columns highlighted in yellow (Agent Name, Busy(Work), Open, Calling, and On Call) are what I need to find on IBPAgentReport and display the data in those Highlighted Columns.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Program that finds a header then displays that column on another WS

    Hi

    Try this.
    Please Login or Register  to view this content.
    rylo

  5. #5
    Registered User
    Join Date
    12-21-2011
    Location
    ID - Idaho
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Program that finds a header then displays that column on another WS

    That worked liked I dreamed it would! Thank you very much.

  6. #6
    Registered User
    Join Date
    12-21-2011
    Location
    ID - Idaho
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Program that finds a header then displays that column on another WS

    Just found a bummer. When I tested it with a different set of data (remember the vendor report constantly moves the columns around), it doesn't work. The Highlighted error in the code is

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-21-2011
    Location
    ID - Idaho
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Program that finds a header then displays that column on another WS

    I apologize, I broke it. I fixed it, you are still wonderful and answered a dream.

+ 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