need this macro, in cfs on hand report, changed as described. $20.00

  • 10% Paid to OzGrid?
    Yes

    I am having an issue with this report and would like some changes made. I would like the report to look like the attached example, CFS on Hand Report, after ran, with no borders lines between MAWBS, and no open Spaces. For your review here is the notes I have made. I have several files in a folder on my desktop like the 2 examples Ever Eagle, and OOCL. all files will have a different number of rows from 13 up to row 39. The other workbook “CFS On Hand” Is a report file. I want to place this file in the folder with the files and when a user selects it a message box come up asking if they want to create a new report. Selecting “YES” will activate the macro to open each file in the folder and look for a date in cell “H4” in each file. If no date in that cell, skip that file. If a date is in that cell, look for any cells that are blank in any row that has Data in G13 thru J39. And copy that Row, up to Column “P”, over to the Report File. Each file can have a different number of Rows with Data up to Row 39. In the 2 Example File it would skip the OOCL file as no Date in in Cell H4. But it would copy over row 15 in the Ever Eagle file as it has open cells in the rows with data, and has a Devan date in cell H4. Needed Results As shown in the example. After opening each file and running the macro it would save the report in the file as CFS ON HAND REPORT – and the current date. Please let me know if I need to make another post? Please see the notes below and let me know. Thank you.

  • My Apologies, here is the code I have been using

  • I can look at this for you

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • When you create a Report do you want to clear any existing data in the Report File before adding new Report data, or add new data to any existing data?

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • I have a solution for you.


    I will PM you with my PayPal details and post the code here on receipt of payment.

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Payment received, many thanks.


    Make sure all the CFS files and the CFS Report file are in the same folder.


    Put this in the ThisWorkbook Object module

    Code
    Private Sub Workbook_Open()
        If MsgBox("Do you want to create a new Report?", vbQuestion + vbYesNo, "Create Report") = vbYes Then CreateReport
    End Sub

    And in a standard module put this code

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • My bad! Try changing the code in the Standard Module to this

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • Try

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

  • You're welcome

    We now have a reputation system in place. If my reply helped please "Like" the reply by clicking the "Like" icon at bottom right of my reply.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!