reconciliation between 2 files

mrinal saha

Board Regular
Joined
Jan 20, 2009
Messages
229
Hi folks,

I am trying to reconcile two xl files and this is written in 3rd excel file called TLM. Break file is already open and after running the macro it will open the Coma holdings file and do the rest. But I am getting Runtime Error 13 and Type mismatch as i approach on the RED line.


Workbooks.Open Filename:="W:\Windows\Desktop\IB OPS\Triparty Existing\Coma Holdings.xls"
Set ch = Workbooks("Coma Holdings.xls")
Set br = Workbooks("Breaks.xls")
Set chs = ch.Sheets("Coma Holdings")
Set brs = br.Sheets("Breaks")

For a = 2 To br.Sheets("Breaks").Cells(Rows.Count, 1).End(xlUp).Row
For b = 2 To ch.Sheets("Coma Holdings").Cells(Rows.Count, 1).End(xlUp).Row
If br.Sheets("Breaks").Cells(a, 12).Value = 0 Then

If br.Sheets("Breaks").Cells(a, 3).Value = ch.Sheets("Coma Holdings").Cells(b, 1).Value Then
If br.Sheets("Breaks").Cells(a, 11).Value = ch.Sheets("Coma Holdings").Cells(b, 11).Value Then
br.Sheets("Breaks").Cells(a, 12).Value = ch.Sheets("Coma Holdings").Cells(b, 17).Value
End If
End If
End If
Next b
Next a


Thanks in advance.

Mrinal
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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