VBA Match and highlite

Bablu

Board Regular
Joined
Dec 9, 2008
Messages
128
Hi All,

I am trying to automate some tedious tasks.

Basically, if the values on Col A match (VBtextcompare) and values in Col D net off to something around abs(.1), I would like to highlite the entire row. I unable to write something like that. Here is what I have so far, but I have to do the selection, which is pointless.

Global lastsum As Long
Sub Copy()
For Each cell In Selection
lastsum = Application.WorksheetFunction.Sum(Selection.Value)
If lastsum< 0.1 Then cell.EntireRow.Delete
Next
End Sub

Here is the problem. It's not limited 4 lines all sheets

06302010 CSFB CASH REC- Galbraith Global Strategies Master Fund (300147).xls
ABCDEFG
16Difference explanation
17Security Name/DescriptionTickerCusip / SedolAmountGeneva ID nrSettlem. DateRemarks
18
19Entries on broker statement, not in geneva
20
21ABB LTD710889928,060.89Jun-08-2010
22NOVARTIS AG REG SHS710306542,791.18Jun-08-2010
23
24
25
26Entries in Geneva, not in broker statement
27
28
29
30NOVARTIS AG -(42,791.20)324526416/8/2010
31ABB LTD -(28,060.90)324526886/8/2010
32
33
34Total reconciled(0.03)
35
36Unexplained difference35.40N.M
CHF GGO


Thanks,

Bablu
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Watch MrExcel Video

Forum statistics

Threads
1,133,272
Messages
5,657,770
Members
418,412
Latest member
fehr56

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
Top