dodom75
Board Regular
- Joined
- Jul 10, 2008
- Messages
- 136
At the end of a macro that pulls over data from another spreadsheet I have the following code to copy the color from one of the copied columns to other columns.
The problem I am having is where I have range ("B7"), it is just pulling the color of that cell where I actually need it to be copying the format of cell B7 should copy to E7-I7, B8 should copy to E8-I8, etc. I have tried range ("B:B"), range (B7:B700), but nothing is working. Any assistance you can provide will be greatly appreciated.
Thanks,
Danielle
The problem I am having is where I have range ("B7"), it is just pulling the color of that cell where I actually need it to be copying the format of cell B7 should copy to E7-I7, B8 should copy to E8-I8, etc. I have tried range ("B:B"), range (B7:B700), but nothing is working. Any assistance you can provide will be greatly appreciated.
Code:
[LEFT]With OutSH
.Range("A6:J" & .Cells(Rows.Count, 1).End(xlUp).Row).Sort key1:=.Range("A6"), order1:=xlAscending, header:=xlYes
.Range("E7:I" & .Cells(Rows.Count, 1).End(xlUp).Row).Interior.ColorIndex = .Range("B7").Interior.ColorIndex
End With[/LEFT]
Thanks,
Danielle