Question

I'm new to doing Office interop via C#/.NET. In the Excel API there is a Range.AutoFormat() command that takes an enummeration of xlRangeAutoFormat. The names of the enumeration don't correspond to the Excel Format As Table options in Excel 2010. In Excel you have categories of names like Light, Medium, Dark, in the enumeration you have many options with names like xlRangeAutoFormatClassic2. Does anyone know of a reference that shows what these enumerations look like? If not is there a way in Excel to use these enumerations manually to find a suitable one?

Was it helpful?

Solution

I wrote a method to apply all the enums with a pause of 2 seconds on each one showing the int conversion of the enum and a shortened version of the name. I made the world's most boring video out of it and put it on youtube. Many of the enums do nothing as far as I can tell, many are ugly. I can see why examples aren't available probably no one is formatting their tables using the auto formats.

And here's the famous classic2enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top