Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In this macro, How do you include the background color format?
Color is on Sheet 2, would like to have it carried across to sheet 1 along with data. Any color, but I am using color 3 (green). ---------------------------------------------- Sub Newer2() 'Final Code Dim rCell As Range Dim rCell2 As Range For Each rCell2 In Sheet2.Range("A2:A150") 'adjust for how many rows you want to copy With Sheet1.Range(rCell2.Offset(0, 0).Address) 'Header row has description row one .Value = rCell2.Value For Each rCell In rCell2.Offset(0, 1).Resize(1, 8) 'change all the columns you need .Offset(0, rCell.Value).Value = rCell.Value Next rCell End With Next rCell2 End Sub ------------------------------------------------ With Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checkbox to change background color, font color and remove/ add bo | Excel Discussion (Misc queries) | |||
how can I conditionally change font color, or background color? | Excel Worksheet Functions | |||
Cell background color (interior color) setting not working | Excel Programming | |||
Default Border, Font Color, and Cell Background Color | Excel Discussion (Misc queries) | |||
Excel 2003 Font Color and Background Color | Excel Discussion (Misc queries) |