Populating Cells using VBA based on Values from another sheet

amazon_devil

New Member
Joined
Jul 30, 2018
Messages
4
I am trying to figure out a tidy way to write the following scenario.

Worksheet A
Has a list that, from project to project will vary in the number of rows in it.

Example of information in Worksheet A. Data to be used in Calendar Month column.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Calendar Month[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]Jul-18[/TD]
[TD]01/07/2018[/TD]
[TD]31/07/2018[/TD]
[/TR]
[TR]
[TD]Aug-18[/TD]
[TD]01/08/2018[/TD]
[TD]31/08/2018[/TD]
[/TR]
[TR]
[TD]Sep-18[/TD]
[TD]01/09/2018[/TD]
[TD]30/09/2018[/TD]
[/TR]
[TR]
[TD]Oct-18[/TD]
[TD]01/10/2018[/TD]
[TD]31/10/2018[/TD]
[/TR]
[TR]
[TD]Nov-18[/TD]
[TD]01/11/2018[/TD]
[TD]30/11/2018[/TD]
[/TR]
[TR]
[TD]Dec-18[/TD]
[TD]01/12/2018[/TD]
[TD]31/12/2018[/TD]
[/TR]
</tbody>[/TABLE]













Worksheet B
Tracking sheet that is using the list from Worksheet A, to populate the titles of columns going across the sheet.


I want the script to use the value in each of the rows (3 times each before moving to the next row) from Worksheet A, across the top of worksheet B to create the titles for a table.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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