+ Reply to Thread
Results 1 to 3 of 3

Can't map headers together

  1. #1
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    Can't map headers together

    Hi there,

    Pretty vague question but I have been set the task of amending someone else's excel VBA and I am trying to work it out. Basically I think the change I need to make is in the code below (There is a lot of extra code not included). The code below matches up the headers if the headers have the same titles, however I need to amend the code so that the code is mapped e.g. Surname = last name, address 1 =Street_Address etc. I thought about mapping the headers on an excel sheet and then referring to that using either something to do with vlookup or index etc. Any advice would be useful.

    Please Login or Register  to view this content.
    Regards,

    Forrestgump1980

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,919

    Re: Can't map headers together

    It does not look like we have the whole picture HDRFILE1ROW and HDRFILE2ROW look like they are arrays that are defined somewhere else in the code.

    Instead of patching this code, we might be able to build something "from scratch" just as easily if we had a sample workbook. I think all you would need to do is provide the headers. I don't think any actual data would have to be provided.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    06-06-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: Can't map headers together

    Thanks for your reply the headers are as follows:- id=id, effectivedate=effectivedate, FirstName=FirstName, Surname=Surname, address1=Street, address2=Area, address3=City, address4=Postcode. I am currently trying to create some loops to see if I can get the code to work. Any help you can provide I am very greatful.

    Regards,

    Forrestgump

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-03-2016, 02:33 AM
  2. [SOLVED] How to Copy a filter data with headers, excluding the headers?
    By Elomaldo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2014, 03:35 PM
  3. [SOLVED] listbox with column headers as a specific sheet column headers
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2014, 04:40 AM
  4. Replies: 4
    Last Post: 02-08-2014, 02:31 PM
  5. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  6. Replies: 3
    Last Post: 09-30-2010, 12:30 PM
  7. Headers/Titling headers
    By Gunit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2010, 01:44 PM

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