VBA, Will not run, £20, GBP or Euro

  • Hi,


    Should be a quick fix.


    I have code to do the following:



    • Up date to a pivot table (worksheet select action)
    • Copy to multiple sheets (Module)


    The two part work in isolation, but crash when put together.


    Code is as follows:


    Module


    Code
    Sub ModuleFull()


    Worksheet code


    Worksheet



    I have also uploaded the sample work book with the code in it.


    Basis of how design should work




    • Run 'Create' Creat macro button
    • Module VBA cycles through cost centre list and updates cell A8 on Sheet "CCREC"
    • This inturn links to the pivot table cells K20:k21
    • The VBA is the module refreshes the sheet so new pivot table values are returned
    • The vba then creates copies past values copies of each pivot table created.


    I would prefer that the code I am using be corrected and explanation be added to the code so I can later work it out for my self.



    Thanks


    Matt

  • Re: VBA, Will not run, £20, GBP or Euro


    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.

  • Re: VBA, Will not run, £20, GBP or Euro


    HI,


    I thought i had replied, but can not see it, so will reply again.


    Before doing anycoding please can I ask that you do the following:



    Review for feasibility
    If you still want to do the work, then add explanation of the changes you make so that i can learn as well.



    If that is oK i am happy for you to go ahead.


    Matt

  • Re: VBA, Will not run, £20, GBP or Euro


    Sure, no problem, I will review all the code, modify it as need be to get it working and make it as efficient as possible, I will add comments to the code to explain steps being taken.

    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.

  • Re: VBA, Will not run, £20, GBP or Euro


    When creating the "Report" sheets do you want the buttons deleted from the new sheet?

    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.

  • Re: VBA, Will not run, £20, GBP or Euro


    Your file with revised code is ready, I will PM you my PayPal Details, and attach the file 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.

  • Re: VBA, Will not run, £20, GBP or Euro


    Hi,


    The file was sent via e-mail, because, at the time, I could not attach a file here. That seems to have resolved itself now though, so here is the file again.


    Please note that payment has still not been received, please check with PayPal and let me know the transaction ID so that I can chase it up too.


    Thanks.

  • Re: VBA, Will not run, £20, GBP or Euro


    PayPal eventually managed to get their act together, payment now received, many thanks.

    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.

  • Re: VBA, Will not run, £20, GBP or Euro


    Hi,


    This doe not work correctly.
    When I run the VBA I just get the same report copied repeatedly which is what my code did.


    Please can you review and advise.


    Thanks

  • Re: VBA, Will not run, £20, GBP or Euro


    Sorry, my bad, I sent a development file not the final version. Use the attached version.

Participate now!

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