Formatare tabel

Închis
Apostolu
Mesaje: 285
Membru din: Joi Aug 20, 2009 4:05 pm

Formatare tabel

Mesaj de Apostolu » Mie Noi 30, 2016 12:08 pm

Help
Nu face nimic.
(XP+Word 2003)

Cod: Selectaţi tot

Sub ApplyTableStyle()
    
    Dim tbl As Table
    For Each tbl In ActiveDocument.Tables
        tbl.Style = "Grid"
    Next
End Sub
Ultima oară modificat Sâm Sep 16, 2017 7:00 pm de către Dr.Windows, modificat 1 dată în total.
Motiv: Adaugare taguri CODE

Avatar utilizator
Dr.Excel
Site Admin
Site Admin
Mesaje: 1997
Membru din: Sâm Ian 24, 2009 1:45 pm
Localitate: Bucharest
Contact:

Re: Formatare tabel

Mesaj de Dr.Excel » Mar Sep 12, 2017 5:02 pm

Sigur ai un tabel in document? Ataseaza fisierul .doc

MCT, MCITP
MOS Master Instructor
IT Learning

Apostolu
Mesaje: 285
Membru din: Joi Aug 20, 2009 4:05 pm

Re: Formatare tabel

Mesaj de Apostolu » Mie Sep 13, 2017 8:10 am

Run-time error '5834':
Item with specified name does not exist.

Adica nu exista acel "Grid" din Table AutoFormat. :)

Închis

Înapoi la “Visual Basic for Application (VBA) - Intrebari tehnice”