Hi all, please will someone help assist me with this VBA macro I am struggling to write. I have a workbook with multiple worksheets containing data, the aim of this VBA macro is to copy data from all the different worksheets into one worksheet that I will call "Historical", as a place to consolidate all the data gathered. So in the picture below, I need to copy the data from worksheet "Lesotho" and paste it onto the worksheet "Historical". The data that needs to be copied is Range("D2:E41"), the "Historical" worksheet will have all the headings in column "B" already.
Here is a picture of what I want it to look like after the data is copied from the worksheet "Lesotho" to "Historical".
I also need data from another worksheet copied and pasted below the data for "Lesotho" on the "Historical" worksheet, so in this case data from "Uganda" where the range is ("D2:E61") needs to be pasted below the data from "Lesotho" on the "Historical" worksheet, where it will look like this:
The data from "Uganda" needs to be pasted into Range("C42:D101") on the "Historical" worksheet, below the data from "Lesotho". The last part I am looking to do with this VBA macro is to have the macro copy paste data every new week, in the pictures posted the date is 6 November 2022, there will be another macro that hides columns "C" and "D". I now need this same copy paste macro to copy data from range ("F2:G61") on "Lesotho" and paste it after the data already on "Historical". This picture below is the "Lesotho" worksheet with columns "C" and "D" hidden.
Here is what I want it to look like after the data is copied onto the worksheet "Historical".
The data for range ("F2:G41") from worksheet "Lesotho" is pasted into range ("E2:F41") on the worksheet "Historical", the macro would also copy data from "Uganda" where columns "C" and "D" would be hidden, copying range ("F2:G61") from "Uganda" and pasting it to range ("E42:F101") on "Historical". Would it be possible to write this VBA macro? I am not sure on the limitations for Excel VBA, and it seems like this is a long macro to write since I am consolidating data from multiple worksheets into one worksheet, on top of one another where I am hiding columns in the other worksheets as well. Please and thank you in advance if anyone is able to assist me. Apologies for the long post as I am quite new to Excel VBA. Thank you again!
Here is a picture of what I want it to look like after the data is copied from the worksheet "Lesotho" to "Historical".
I also need data from another worksheet copied and pasted below the data for "Lesotho" on the "Historical" worksheet, so in this case data from "Uganda" where the range is ("D2:E61") needs to be pasted below the data from "Lesotho" on the "Historical" worksheet, where it will look like this:
The data from "Uganda" needs to be pasted into Range("C42:D101") on the "Historical" worksheet, below the data from "Lesotho". The last part I am looking to do with this VBA macro is to have the macro copy paste data every new week, in the pictures posted the date is 6 November 2022, there will be another macro that hides columns "C" and "D". I now need this same copy paste macro to copy data from range ("F2:G61") on "Lesotho" and paste it after the data already on "Historical". This picture below is the "Lesotho" worksheet with columns "C" and "D" hidden.
Here is what I want it to look like after the data is copied onto the worksheet "Historical".
The data for range ("F2:G41") from worksheet "Lesotho" is pasted into range ("E2:F41") on the worksheet "Historical", the macro would also copy data from "Uganda" where columns "C" and "D" would be hidden, copying range ("F2:G61") from "Uganda" and pasting it to range ("E42:F101") on "Historical". Would it be possible to write this VBA macro? I am not sure on the limitations for Excel VBA, and it seems like this is a long macro to write since I am consolidating data from multiple worksheets into one worksheet, on top of one another where I am hiding columns in the other worksheets as well. Please and thank you in advance if anyone is able to assist me. Apologies for the long post as I am quite new to Excel VBA. Thank you again!