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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,814
Messages
6,181,127
Members
453,021
Latest member
Justyna P

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