Advertisement
primall

Macros Word

Mar 23rd, 2023
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Sub ResizePicture()
  2. '
  3. ' ResizePicture Macro
  4. '
  5. '
  6. Dim x As Long
  7. With ActiveDocument
  8. For x = 1 To .InlineShapes.Count
  9. With .InlineShapes(x)
  10. .LockAspectRatio = msoFalse
  11. .Width = CentimetersToPoints(15)
  12. End With
  13. Next x
  14. End With
  15. End Sub
  16. Sub RemoveTableBorder()
  17. '
  18. ' RemoveTableBorder Macro
  19. '
  20. '
  21. For Each Table In ActiveDocument.Tables
  22. Table.Borders(wdBorderTop).LineStyle = wdLineStyleNone
  23. Table.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
  24. Table.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
  25. Table.Borders(wdBorderRight).LineStyle = wdLineStyleNone
  26. Table.Borders(wdBorderHorizontal).LineStyle = wdLineStyleNone
  27. Table.Borders(wdBorderVertical).LineStyle = wdLineStyleNone
  28. Next
  29. End Sub
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement