Copy and Paste range of cells to different tabs according to multiple criteria using VBA

MineEng

New Member
Joined
Aug 25, 2014
Messages
1
Hi All,

This is my first post and I'm relatively new to VBA so bear with me here. I'm trying to establish some code to copy data from one tab and paste it to other tabs according to multiple criteria. Here's some more background info:

Data Input:
Cell "A2" contains the Data Date
Cell "C1" contains the Project Name
Cells "B8:B69" contain Equipment Type
Cells "C8:C69" contain Adjusted Equipment Hours
Cells "E8:E69" contain Actual Equipment Hours

This information is then repeated in the adjacent columns with the exception of the referenced Data Date and Equipment Type; these cells remain the same.

The goal is to copy the Adjusted Equipment Hours and Actual Equipment Hours from the Data Input sheet and paste them to the matching equipment type and date found in another sheet of the workbook. The data must be copied to the worksheet/tab matching the project name listed in the Data Input sheet. Additionally, the data will be pasted to the columns on a regular basis matching the listed date in order to develop a historical database. I've copied some of the cells below to see how it looks. I'll try to attach the worksheet. Anything helps.

Cheers:)


"Data Input" Tab:


Week endingProject NameProject 1Project 2
01-JanSPO
Paid Hours per 24hr period12
Days Off0
Sequencing PeriodWeather Delays (days)0
7Availability80%
Plan vs. ActualForecasted UnitsAdjusted Equipment HoursActual Equipment HoursForecasted UnitsAdjusted Equipment HoursActual Equipment Hours
Unit 100
Unit 200
Unit 300

<tbody>
</tbody>

<tbody>
</tbody>

"Project 1" Tab

Week Ending1-Jan-148-Jan-14
Plan vs. ActualAdjusted Equipment HoursActual Equipment HoursVarianceAdjusted Equipment HoursActual Equipment HoursVariance
Unit 1
Unit 2
Unit 3

<tbody>
</tbody>
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,215,360
Messages
6,124,492
Members
449,166
Latest member
hokjock

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