Laurent Godard wrote:
> Hi bernard
> 
>> newStyle.ParentStyle = oldStyle.Name
>> oStyles.insertByName("myNewStyle", newStyle)
>>
> 
> does it work with different spreadsheets ?
> i'm not sure, i'll test when time but really not sure
> actually, i loop on all properties. that is the quickest way i explored
> 
> Laurent

i would assume that setting a parent style only works if the parent style
actually exists in the same document as the newStyle.

furthermore, setting a parent style is different from simply copying all
the properties over: with a parent style, the new style is linked to the
parent, so a later change to the parent style will have an effect on the
child as well, which is not the case if you just copy properties.
this may or may not be what Alan wants.

michael

-- 
"Lisp for Dummies: An Introduction to Python"
 -- [Name withheld by request], proposed book title


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to