VBA question on bolding differences between sheets

Curtisyoung78

New Member
Joined
Jun 19, 2017
Messages
25
Hi I am new here and have a question regarding VBA coding. I am building a spreadsheet and I would like to be able to use VBA Code to bold the differences between sheet 2 and sheet 1. It is a steel pile schedule where each sheet is a revision and the changes to each revision needs to be bolded and a thick border placed around rows (non consecutive rows, column A to R) containing bolded cells, and when rows with bolded cells are consecutive there needs to be bold border above top row (row that contains bolded cell) and thick border below bottom row (row that contains bolded cell) this emphasizes the changes in the new revision. The range is A12 to Q:2000)

I currently am able to bold the differences using conditional formatting but would rather automate the full process for better accuracy and efficiency.

My goal is to do all this with a VBA code and assign to a button or have it update automatically if possible. Can someone please help with the VBA code this would really speed up the process. This is quite a bit to ask but I'm just starting to learn VBA and this would really be an excellent learning experience, thanks in advance for any help.

See below for an example.

P6067TYPE 12739.311.012.0100.400121.62092.070FLARE K.O. DRUM (601V-100)150200
P6068TYPE 12198.29.010.0100.200112.460103.945PIPE SUPPORT PS-60048080
P6069TYPE 12198.29.010.0100.200112.460100.505PIPE SUPPORT PS-60048080
P6070TYPE 12198.29.010.0100.200113.00089.420PIPE SUPPORT PS-60058080
P6071TYPE 12198.29.010.0100.200113.00087.420PIPE SUPPORT PS-60058080

P6072

TYPE 4

273
THICK BORDER HERE
9.3
(BELOW CELLS ARE BOLDED BECAUSE THEY WERE ADDED IN REV1, ABOVE REV 0 INFO CARRIED OVER)
10.0

11.0

99.575

39.000

40.000
LIGHT STANDARD 140151
P6073TYPE 42739.310.011.0100.215107.00041.000LIGHT STANDARD140151
P6074TYPE 42739.310.011.099.900149.50051.700
LIGHT STANDARD 140151

<colgroup><col><col><col><col><col><col><col><col span="3"><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
<strike></strike>THICK BORDER HERE

<tbody>
</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,215,945
Messages
6,127,844
Members
449,411
Latest member
adunn_23

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