Set some settings as default

I would like to create a command to set all new shapes as hairline in rgb red.

The same effect as the user double click on the pen symbol (default values for Graphic)

Parents
  • You could try this:

    Sub set_default_graphic_outline_hairline_RGB_red()
    
    Dim styleThis As Style
    
        Set styleThis = ActiveDocument.StyleSheet.FindStyle("~graphic~")
        styleThis.Outline.Width = ActiveDocument.ToUnits(762, cdrTenthMicron)
        styleThis.Outline.Color = Application.CreateRGBColor(255, 0, 0)
    End Sub
    
Reply Children