Commit dc034d30 authored by Edith Cannet's avatar Edith Cannet
Browse files

corr. macro format date (new para)

parent 4b195181
Loading
Loading
Loading
Loading
+5 −3
Changes for MS_Word/Metopes/vba/modules/init_language.bas: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -365,8 +365,9 @@ Sub format_date(style_name)
   ElseIf InStr(k, ":") <> 0 Then
   dateAfterDot = Split(k, ":")(1)
   DateValue = CDate(dateAfterDot)
   Selection.MoveEnd Unit:=wdCharacter, Count:=-1
   Selection.MoveRight Unit:=wdCharacter, Count:=1
   Selection.EndKey Unit:=wdLine
   'Selection.MoveEnd Unit:=wdCharacter, Count:=-1
   'Selection.MoveRight Unit:=wdCharacter, Count:=1
   l = Format(DateValue, "DD/MM/YYYY") '& Chr(13)
   Selection.InsertAfter Text:="[" & l & "]"
   With Selection
@@ -377,7 +378,8 @@ Sub format_date(style_name)
 ElseIf IsDate(k) Then
   DateValue = CDate(k)
  
    Selection.MoveRight Unit:=wdCharacter, Count:=1
    Selection.EndKey Unit:=wdLine
    'Selection.MoveRight Unit:=wdCharacter, Count:=1
    l = Format(DateValue, "DD/MM/YYYY") '& Chr(13)
    Selection.InsertAfter Text:="[" & l & "]"
    With Selection