stinkingcedar
New Member
- Joined
- May 2, 2016
- Messages
- 23
Hey guys, here is my code:
Having trouble formulating a code that will add these two ranges together, divide by a constant and then paste into another sheet.
Code:
Set Efficiency = Sheets("Sheet1").Range(Sheets("Sheet1").Cells(StartCellRow + 6, StartCellColumn), Sheets("Sheet1").Cells(StartCellRow + 6, StartCellColumn + 21))Set Inefficiency = Sheets("Sheet1").Range(Sheets("Sheet1").Cells(StartCellRow + 8, StartCellColumn), Sheets("Sheet1").Cells(StartCellRow + 8, StartCellColumn + 21))
For Each cell In Array(Efficiency, Inefficiency)
cell.Value = cell.Value / x
Next cell
EffIff = Efficiency + Inefficiency
EffIff.Copy
Sheets("Sheet2").Range("J4").PasteSpecial Transpose:=True
Having trouble formulating a code that will add these two ranges together, divide by a constant and then paste into another sheet.