VBA Match and highlite

Bablu

Board Regular
Joined
Dec 9, 2008
Messages
126
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
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,105,999
Messages
5,508,705
Members
408,690
Latest member
Lip Renan

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top