Dear Folks
I have the following codes to generate a stock report in worksheet "CottonRegister" based on Worksheets "CottonPurchase" and "CottonIssue". It is working well in my PC, but when I copy theses worksheets to my PC at office at the same path i.e at Drive C:\ and run the Program it stops at line " Application.WorksheetFunction.SumIf(Workbooks("CottonPurchase").Worksheets("CottonPurchase").Range("d:d"), Cells(x, 1), Workbooks("CottonPurchase").Worksheets("CottonPurchase").Range("g:g"))" saying that Run Time Error 9 and script out of range.
Please Login or Register to view this content.
Bookmarks