VBA to Fill table with values from a column

LuisVilarMoreira

New Member
Joined
Feb 15, 2018
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone

I need your help.

I have a table (d11 : o70) that has to be filled with values that are in a column in another spreadsheet.
The first 12 results go to row 11 from column "d" to column "o", the next 12 to row 12 and so on up to row 70.

I could do like this:
VBA Code:
Sheets("R_Branco_I5").Range("d11") = Sheets("D_socp_tts").Range("a2")
Sheets("R_Branco_I5").Range("e11") = Sheets("D_socp_tts").Range("a3")

But it was a very time-consuming process.

My knowledge of VBA is limited. Can you help me solve this problem?

Thank you all in advance for your attention.
Luís
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,880
Messages
6,175,152
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top