Macro to remove border in Word (XP)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there someone, in the Word newsgroup, who might be able to suggest some Word VBA code to automate the procedure to remove a border? I use the Send to Command from Powerpoint (XP) and Word creates a border around the object. I have hundreds of pages which I need to individually remove the border (using the border and shading command). A macro would certainly simplify this procedure
 
Hi, Rich,

Try this one. It works here.

Sub NoBorders()
Dim oILS As InlineShape
For Each oILS In ActiveDocument.InlineShapes
oILS.Borders.Enable = False
Next oILS
End Sub
 

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

Back
Top