Pagina 1 din 1

Boldare si centrare in tabel

Scris: Joi Oct 10, 2013 6:32 pm
de Apostolu
Document cu multe tabele.

Se cere bolarea si centrarea textului din primul rand al tuturor tabelelor.

Cum se poate face automat ?

Re: Boldare si centrare in tabel

Scris: Vin Oct 11, 2013 4:33 pm
de IPP
Buna ziua

Pe o copie a fisierului dvs. original, testati codul:

Cod: SelectaĊ£i tot

Sub ChngFormatR1InTbls()

'IPP - 11.10.2013

Application.ScreenUpdating = False

Dim tTable As Table
      
For Each tTable In ActiveDocument.Tables
    tTable.Rows(1).Select
        With Selection
        .Font.Bold = wdToggle
        .ParagraphFormat.Alignment = wdAlignParagraphCenter
        End With
Next

Application.ScreenUpdating = True

End Sub
IP

Re: Boldare si centrare in tabel

Scris: Vin Oct 11, 2013 5:03 pm
de Apostolu
Pe niste table facute repede intr-un doc, a functionat perfect.
Sa vad zilele astea si pe ceva exemple reale.

Oricum multumesc foarte mult !