Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am looking to do 2 things
1 I want to select the whole worksheet and remove any fill colors and then I want to select a specific Range in a spreadsheet (eg B5:d10) and right Justify all the data in the worksheet Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"Jaina WIlliams" wrote in message
... : I am looking to do 2 things : 1 I want to select the whole worksheet and remove any : fill colors and then : I want to select a specific Range in a spreadsheet (eg : B5:d10) and right Justify all the data in the worksheet : : Thanks Have you tried using the macro recorder while doing this? It will write the code for you. Paul D |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, if you record a macro and manually do what you describe it will
generate the following code: Cells.Select Selection.Interior.ColorIndex = xlNone Range("B5:D10").Select With Selection .HorizontalAlignment = xlRight .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With HTH--Lonnie M. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But then you should tidy it up to get rid of the garbage
Cells.Interior.ColorIndex = xlNone Range("B5:D10").HorizontalAlignment = xlRight -- HTH RP (remove nothere from the email address if mailing direct) "Lonnie M." wrote in message oups.com... Hi, if you record a macro and manually do what you describe it will generate the following code: Cells.Select Selection.Interior.ColorIndex = xlNone Range("B5:D10").Select With Selection .HorizontalAlignment = xlRight .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With HTH--Lonnie M. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can change range to select active rows instead of :=Range("S10 | Excel Discussion (Misc queries) | |||
When entering data into a range of cells, select the entire range. | Excel Discussion (Misc queries) | |||
format first row within select | Excel Programming | |||
When I select "format cells", the format dialog box does not disp. | Excel Worksheet Functions | |||
Select Sheet then Select Range | Excel Programming |