Simpatie.ro - matrimoniale
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
crazygirl la Simpatie.ro
Femeie
24 ani
Buzau
cauta Barbat
26 - 80 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[WORD] Remove Page Border with One Click [VBA]

Pagini: 1 Moderat de TRaP, TonyTzu
#1
Mrrrr
AdMiN
Postari: 2388
Source was to add custom borders to page (colored etc.):
https://social.msdn.microsoft.com/Forum ... forum=vsto

More line styles
https://docs.microsoft.com/en-us/office ... dlinestyle


Sub PageBorderToggle()

With ActiveDocument.Sections(1)

    With .Borders(wdBorderLeft)
        .LineStyle = wdLineStyleNone
    End With

    With .Borders(wdBorderRight)
        .LineStyle = wdLineStyleNone
    End With

    With .Borders(wdBorderTop)
        .LineStyle = wdLineStyleNone
    End With

    With .Borders(wdBorderBottom)
        .LineStyle = wdLineStyleNone
    End With

    With .Borders
        .ApplyPageBordersToAllSections
    End With

End With

End Sub


_______________________________________


 
   
Pagini: 1  
Mergi la