P
Paolo B
I have 2 macros and I don't understand why Sub Oggetto() is "stronger" than
Sub Milano() I want to say that when start before Sub Milano() after Sub
Oggetto() is able to change the ParagraphFormat but when i start before Sub
Oggetto() after Sub Milano() is NOT able to change the ParagraphFormat,
Why?
How could became Sub Milano() stronge like Sub Oggetto()? some vitamin ;-)
Thanks, PaoloB
Sub Milano()
'
' Milano Macro
' Macro registrata il 08/09/2004 da P
'
With Selection.ParagraphFormat
.LeftIndent = CentimetersToPoints(2)
.RightIndent = CentimetersToPoints(2)
End With
Selection.TypeText Text:="Milano, "
Selection.InsertDateTime DateTimeFormat:="d MMMM yyyy", InsertAsField:=
_
False
Selection.TypeParagraph
Selection.TypeParagraph
End Sub
Sub Oggetto()
'
' Oggetto Macro
' Macro registrata il 18/09/2004 da P
'
With Selection.ParagraphFormat
.LeftIndent = CentimetersToPoints(3.68)
.RightIndent = CentimetersToPoints(2)
.FirstLineIndent = CentimetersToPoints(-1.68)
End With
Selection.TypeText Text:="Oggetto: "
End Sub
Sub Milano() I want to say that when start before Sub Milano() after Sub
Oggetto() is able to change the ParagraphFormat but when i start before Sub
Oggetto() after Sub Milano() is NOT able to change the ParagraphFormat,
Why?
How could became Sub Milano() stronge like Sub Oggetto()? some vitamin ;-)
Thanks, PaoloB
Sub Milano()
'
' Milano Macro
' Macro registrata il 08/09/2004 da P
'
With Selection.ParagraphFormat
.LeftIndent = CentimetersToPoints(2)
.RightIndent = CentimetersToPoints(2)
End With
Selection.TypeText Text:="Milano, "
Selection.InsertDateTime DateTimeFormat:="d MMMM yyyy", InsertAsField:=
_
False
Selection.TypeParagraph
Selection.TypeParagraph
End Sub
Sub Oggetto()
'
' Oggetto Macro
' Macro registrata il 18/09/2004 da P
'
With Selection.ParagraphFormat
.LeftIndent = CentimetersToPoints(3.68)
.RightIndent = CentimetersToPoints(2)
.FirstLineIndent = CentimetersToPoints(-1.68)
End With
Selection.TypeText Text:="Oggetto: "
End Sub