Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, XL 2003 and 2007.
Have the code listed below that selects an entire column and then colors and formats it. My problem is that I don't need the entire column but only D4 down. D4 contains the beginning statement for my pivot table. The length of the column will be variable and I'm not sure how to put the code in to take it from D4 down to the last complete cell. Can someone help with the code, and the coloring is supposed to be for the range and not the entire column Thanks BOB R ActiveCell.Offset(0, 1).Columns("A:A").EntireColumn.Select With Selection .EntireColumn.AutoFit .HorizontalAlignment = xlCenter End With With Selection.Interior .ColorIndex = 36 .Pattern = xlSolid End With Selection.Font.Bold = True Selection.Font.Italic = True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Row & column portions of a cell as variables | Excel Discussion (Misc queries) | |||
Selecting more than one cell/colum with an offset statement? | Excel Programming | |||
SUBTRACT COLUMN A FROM COLUM B =? | New Users to Excel | |||
look up a value in one column to another colum | Excel Worksheet Functions | |||
add a colum within 5 spaces of a column | Excel Discussion (Misc queries) |