Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following VBA and it works fine:
Selection.AutoFormat Format:=xlRangeAutoFormatList2, Number:=True, _ Font:=True, Alignment:=True, Border:=True, Pattern:=True, Width:=True However, I would like to have the Format style as a variable - how do I do it. I tried this and gotten an "AutoFormat method of Range class failed" error. My statement is: vList = "List2" Selection.AutoFormat Format:="xlRangeAutoFormat" & vList, Number:=True, _ Font:=True, Alignment:=True, Border:=True, Pattern:=True, Width:=True Any help is appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to stop style for col A changing to style of co D date vs $ | Setting up and Configuration of Excel | |||
How do I change sheet notation from R1C1 style to A1 style in XL 2 | Setting up and Configuration of Excel | |||
Changing from format style to list style | Excel Worksheet Functions | |||
How do I convert US style dates to European style? | Excel Discussion (Misc queries) | |||
can a1 reference style and r1c1 style be used in same formula? | Excel Worksheet Functions |