Copy & Paste According to Reference

Important Notice


Please note that on 14th December 2023 users will experience an expected outage whilst we make upgrades to our network. We anticipate this process may take a couple of hours and so we apologise in advance for any inconvenience.

  • Hi Community,


    I have some data from a query which I expand upon, however after expanding it is missing some data from the source. Since the data is dynamic (from the query), I can't use a record macro function to copy and paste the missing values!


    In the attached workbook I'm missing some data which can be found in the "source" sheet; specifically Id, travel end date, opportunity reference number and opportunity sequence number. I'm sorry if this is a little confusing so I attached a "expected result" to see what I mean!


    Thank you!

  • Re: Copy & Paste According to Reference


    Thanks for the reply, I didn't think it was important to include, all I did to go from source to after expanded is import the html code (column E) into internet explorer and export it back into excel as a table as well as some simple macro formatting.

  • Re: Copy & Paste According to Reference


    Quote

    I didn't think it was important to include ... all I did is import the html code (column E) into internet explorer and export it back


    I don't understand your problem. As you mention you do not import those columns so it's a simple matter of adding the code for that. Judging by the code you have posted, that should be well within your ability

  • Re: Copy & Paste According to Reference


    Thanks for the reply, the id columns are not included in the import so to match them I tried using string searching and using offset but I can't get the ids to match the reference numbers. This would be fairly simple if it was a static list, but since it is dynamic I can't search for these specific id's. Perhaps some grouping method? Or some better string searching?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!