+ Reply to Thread
Results 1 to 16 of 16

Content Report Automation

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Content Report Automation

    Hi, I have a spreadsheet with a few columns related to a PO report that we run at work. Based on the data in the attached report, I would need your help to create a macro sheet that will add an additional column named Content Type based on the following criteria:

    HTML Code: 
    That is, if we were to do this manually (without any macro), we would first apply a filter and select the value as TRUE for the column [PO] Is PunchOut Item and then the value PunchOut would be included in the column Content Type. The same holds for the remaining four conditions. Could someone help me create a macro sheet with a button such that, in the future when I copy and paste the PO report data into your macro sheet and hit the 'magic' button, this additional column (Content Type) should be added and should be populated based on the above five conditions. Thank you!
    Attached Files Attached Files
    Last edited by puls8; 09-17-2018 at 02:40 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    Please Login or Register  to view this content.
    I accept PayPal
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Hi Logit, thank you for your quick response with this request. Appreciate it. I have tried your macro and it is good, however, can you instead include only one button called "Run" so that when the user clicks on that, the column "Content Type" (which is initially blank) is populated with the values based on the conditions/criteria specified above?


    Typical Usage Scenario

    1. The .xlsm sheet when initially opened should be blank with no data in it except the Column header row and the "Run" button.
    2. User would run the report in some other application and would copy the report data and paste it in our macro sheet. Note that the report data would not have data in the "Content Type" column.
    3. The user would then click on the 'Run' button. The macro would then compute and then populate the data in the "Content Type" column.

    Thank you once again for your efforts!

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    Sorry ... I don't understand the goal.

    Sounds like you are wanting to run the reports in another workbook, then paste the results in this workbook ?

  5. #5
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Not really. Let me try to explain again. The report will be run in one of our other applications and then exported to a .csv sheet. I will then copy the report data from this sheet and then paste it in your macro (.xlsm) sheet and run the macro by clicking on a single button called "Run". Note that the macro sheet should only have the column header initially and no data. Your macro should then do the magic and populate the column (called "Content Type") with values based on the different criteria explained above.

    Let me know if something is not clear and I'll try my best to get that clarified. Thank you!

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    So ... column N (Content Type) will be empty after you paste all of the information in the other columns.

    From the information provided in the other columns (J, K, L) you want Column N to determine the type and place the TYPE TERM in those rows.

    Is that correct ?

  7. #7
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41
    Quote Originally Posted by Logit View Post
    .
    So ... column N (Content Type) will be empty after you paste all of the information in the other columns.

    From the information provided in the other columns (J, K, L) you want Column N to determine the type and place the TYPE TERM in those rows.

    Is that correct ?
    Exactly bro. You got that right. When I initially copy and paste the report data in the macro sheet, the column N will be empty and after running the macro, it will be populated with values based on the above criteria. Thanks.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    Addtional macro :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Thanks Logit for the macro. I tried this latest one with a different set of data and observed that after clicking on the "Complete Content Type" button, the column "Content Type" only populates for few rows (in my test, it only populated till the 9999th row). Is there some limitation on the number of rows in the macro? My test report data had 66895 rows and the Content Type column had only 9999 rows populated after running the macro. Can you please check this? Thank you once again for all your efforts in creating this macro. Regards and have a great day!

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    Where you see For i = 2 To 10000 edit that from 10000 to as many rows as required.

  11. #11
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Thanks Logit. I was trying to edit the macro to update the values, however; I observed that I do not need the other buttons in column O (Clear All, Business Form, etc.). Only the column P is sufficient for now. I am not sure which other code to remove for this.

    Can you please update the code and provide the macro sheet as I am a noob at this Thanks and have a great weekend!
    Last edited by puls8; 09-29-2018 at 02:42 AM.

  12. #12
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Hi logit, have you had a chance to check this please? Thanks

  13. #13
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Content Report Automation

    .
    Sorry for not getting back to you sooner. This FORUM has issues with the server software and at the moment I am not receiving notifications of new posts or private messages. I am told the owner can't do anything about the issues, that 'These things happen and sooner or later it will clear up on its own.'

    In any case, here are the instructions for deleting the buttons/code you no longer need:

    Click on DEVELOPER tab in menu bar.

    Click on DESIGN MODE.

    Right click each button, one at a time, selecting VIEW CODE.

    When you perform this action on button "PO Item Is True", you
    will see the following in the VBE :

    Private Sub CommandButton1_Click()
    POItemIsTRUE
    End Sub

    The name of the sub attached to this command button is called
    POItemIsTrue. If you double-click on Module1, located on the left side of the screen, it will take you to the location of all the
    subs. Find the sub named POItemIsTrue, then delete it. Go back to where
    you found :

    Private Sub CommandButton1_Click()
    POItemIsTRUE
    End Sub

    ... and delete that sub.

    Now go back to the worksheet where the buttons are located and perform the same procedure on each of the buttons you want to discard.

  14. #14
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Hi Logit, greetings to you. I tried to follow the instructions exactly in your last post and after the last step, I saved the macro sheet and when I opened again, I still see the button. I am not sure where I am doing wrong but if you have got some time, can you please make the following changes and attach the macro as a sheet here/if it is still not possible to attach it here, can you please upload it to your Google drive and share the link with me:

    1. Where you see For i = 2 To 10000 edit that from 10000 to as many rows as required. (as mentioned in your earlier post)

    2. Remove the buttons on column O

    Thank you and have a great weekend!

  15. #15
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Hi Logit, have you had a chance to check this please? Thank you and have a great weekend!

  16. #16
    Registered User
    Join Date
    07-11-2014
    Location
    Sin city
    MS-Off Ver
    MS Office Pro Plus 2010
    Posts
    41

    Re: Content Report Automation

    Hi Logit, a gentle reminder. Can you please check and provide the sheet based on my comments in Post # 14?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Report and email automation button
    By Shifani in forum Excel General
    Replies: 0
    Last Post: 08-15-2018, 04:45 AM
  2. Automation of Excel report
    By aparnawangu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2017, 06:52 AM
  3. Report Automation
    By sreeraju_23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2015, 04:51 AM
  4. Need Help, Sales Report and Automation
    By JakeyD in forum Excel General
    Replies: 2
    Last Post: 10-06-2015, 02:31 PM
  5. Automation Process of Schedule Report Output and Report Check Score Card !
    By ozman86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2014, 10:28 AM
  6. Report Automation Engine
    By zfraile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2014, 05:22 PM
  7. [SOLVED] Report automation
    By Daniell in forum Excel General
    Replies: 1
    Last Post: 09-30-2005, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1