Macro Vs. Macro, is one too strong?

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
 
P

Paolo B

.......I would like to say that probably is too strong

..LeftIndent = CentimetersToPoints(3.68)

on the other Macro, but I don't know the solution

PaoloB
 
P

Paolo B

Paolo B said:
......I would like to say that probably is too strong

.LeftIndent = CentimetersToPoints(3.68)

on the other Macro, but I don't know the solution

PaoloB


I founded!

Sub Milano()
'
' Milano Macro
' Macro registrata il 08/09/2004 da A
'
With Selection.ParagraphFormat
.FirstLineIndent = CentimetersToPoints(2)
.LeftIndent = CentimetersToPoints(2)
.FirstLineIndent = CentimetersToPoints(0)
.RightIndent = CentimetersToPoints(2)
End With
Selection.TypeText Text:="Milano, "
Selection.InsertDateTime DateTimeFormat:="d MMMM yyyy", InsertAsField:=
_
False
Selection.TypeParagraph
Selection.TypeParagraph



End Sub


PaoloB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top