Copying rows to a specific cell

Important Notice

Please note that on 14th December 2023 users will experience an expected outage whilst we make upgrades to our network. We anticipate this process may take a couple of hours and so we apologise in advance for any inconvenience.

  • Hey,

    How do I go about changing the following code so that the data copied over is copied starting from a specific cell and not just the first unused row in the sheet. Any help would be appreciated. I have attached the example workbook, but say I wanted to data to copy into the Template Data sheet but only starting from A20 on the sheet, how do I do that.

    Thanks in advance.

    • Best Answer

    Does this work ?

  • Spice.

    Selected a post as the best answer.
  • Thank you Logit. Could you help on a couple more problems I have if possible please. I've attached the excel sheet and copied the code again here.

    1) How would I copy over the rows of data from market data to template data and ensure the formatting is kept the same? (compact rows where everything fits and is adjusted)

    2) If market data and template data were in two separate workbooks, how would I change the code to open up market data workbook copy over the rows of data and then close the market data workbook?

    3) How can I copy the rows but run a formula on cells T4 to Y4 in market data so the the currency is converted to EUR (divide all these cells by FX value in Column E) and then copied over to template data? Unfortunately, I can't run this conversion first as the data is going to be used in this format and so the conversion will have to be done throughout the macro process.

  • Select the row or column that you want to move or copy. or press Ctrl+C. Select the upper-left cell of the paste area or the cell where you want to paste the value, cell format, or formula.

Participate now!

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