View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Shahin.H Shahin.H is offline
external usenet poster
 
Posts: 1
Default Line Gradient in Excel 2007

Thank you Jim and Alok. As Jim said, this is not possible in Beta version as
well as released version that also I have it.
Alok, in Excel 2007, there is a possibility to have a gradient for line. You
can just draw a line and in Format shapes, choose Line color and Gradient
line. However, if you write a macro to define a gradient line color you
cannot find these property while it exists in design mode. I wonder if there
exists in somewhere else that I have not find it yet or not?

Thank you and good luck!
Shahin


"Alok" wrote:

Thanks for the Info, Jim

Alok

"Jim Rech" wrote:

One general method of figuring out how something is done in VBA is to do
it in excel while recording a macro and then studying the macro.


That is true generally but FYI in Excel 2007 few, if any, actions taken on
shapes are recorded by the macro recorder. For example this is the code
recorded when I changed the fill color of a selected rectangle from blue to
red in Excel 2007:

Sub Macro1()
'
' Macro1 Macro
'
End Sub

MS made extensive changes to shapes in Excel 2007 and recording with regard
to them was broken. They told beta testers that they'd like to restore it
in a later version.

--
Jim
"Alok" wrote in message
...
| Shahin,
| As far as I know you cannot apply a gradient to a line. It has to be a
solid
| color.
| One general method of figuring out how something is done in VBA is to do
it
| in excel while recording a macro and then studying the macro.
| Happy new year.
| Alok
|
| "Shahin.H" wrote:
|
| Happy new year everybody,
| I would like to write a macro in EXCEL 2007 (in year 2007 ;) ) to change
| line fill gradient. Suppose, I have a shape which has a fill gradien
color
| and its border has a gradient line color (NOT solid color). So, I wonder
I
| can change gradient line color by writing such a macro? I know this is
| possible to change gradient fill color of shapes in Excel 2007, but I
haven't
| find anything for gradient line color in VBA programming.
|
| I would be very grateful if anybody could help me.
|
| Best regards,
| Shahin.H
|