VBA for vlookup that returns source formatting

climbingchillie

New Member
Joined
May 22, 2018
Messages
1
Hi

I'm a complete newbie to VBA and struggling to find a google answer that fits my specific needs and lack of knowledge.

I have 2 workbooks; One called 'Master' that contains a unique code in column A and a long text description with bold, coloured text and colour shading (not conditional, specific to each individual cell) in column B

The second workbook, "Audit", has the unique references in column B and i'd like to run the formula/return the result in column D.

Based on the unique reference in column A of "Master" matching column B in Audit i'd like to return the values of column B in Master including all formatting to column D in Audit.

Any help is greatly appreciated!

Master Example
AB
GLA 2015/11Does the client drive goods vehicles over 3.5 tonnes in London?


If so, are they fitted with:
(i) a class V mirror on the passenger side
(ii) a class VI mirror to the front of the vehicle and
(iii) sideguard

<tbody>
</tbody>


Audit example
BCD
ReferenceTitleAudit Questions
GLA 2015/11
The GLA Roads and GLA Side Roads (London Safer Lorry Scheme) (Restriction of Goods Vehicles) Traffic Order 2015 (GLA 2015/11)

<tbody>
</tbody>
FORMATTED RESULT HERE

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,547
Messages
6,125,461
Members
449,228
Latest member
moaz_cma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top