View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default Formatting Charts Using Macros

If you have Excel 2003 or earlier, you can simply turn on the macro
recorder, perform the formatting manually, then examine the recorded code.
It won't be efficient code, but it will work, and it will give you the
syntax needed. I've written a couple guidelines for fixing up your recorded
macros:

http://peltiertech.com/WordPress/how...ecorded-macro/
http://peltiertech.com/WordPress/mak...dent-of-sheet/

If you are using Excel 2007, you can still use macros from 2003, usually
without major changes. However, the macro recorder doesn't record any
formatting you perform on shapes or charts. You could try using the help
files, but for over two years I've struggled with them.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"neesie214" wrote in message
...
Hi,

How do I create and run a macro to format a bar graph in Excel? For
example,
I want to change a bar to brown and then apply a gradient. Formatting text
seems easy enough, but I don't know how to create macros to format colors
in
charts.

Thanks!