Guest User

Untitled

a guest
Jan 20th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. ?activewindow.view.revisionsballoonwidthtype
  2.  
  3. activewindow.view.revisionsballoonwidthtype=0
  4.  
  5. activewindow.view.revisionsballoonwidth=10
  6.  
  7. activewindow.view.revisionsballoonwidthtype=1
  8.  
  9. activewindow.view.revisionsballoonwidth=200
  10.  
  11. ' set your preferred measurement type and width here.
  12. ' NB, there seems to be a minimum anyway, but that may depend on things I have
  13. ' not looked at such as screen size and so on.
  14. ' The numbers Word reports are the numbers you have set, not the values
  15. ' it has actually set the width to.
  16. 'Const preferredBalloonWidthType As Integer = WdRevisionsBalloonWidthType.wdBalloonWidthPoints
  17. 'Const preferredBalloonWidth As Single = 300
  18. Const preferredBalloonWidthType As Integer = WdRevisionsBalloonWidthType.wdBalloonWidthPercent
  19. Const preferredBalloonWidth As Single = 25
  20.  
  21. Sub autoopen()
  22. Call changeBalloonSettings
  23. End Sub
  24.  
  25. Sub changeBalloonSettings()
  26. With ActiveWindow.View
  27. .RevisionsBalloonWidthType = preferredBalloonWidthType
  28. .RevisionsBalloonWidth = preferredBalloonWidth
  29. ' debug check
  30. 'If .RevisionsBalloonWidthType = WdRevisionsBalloonWidthType.wdBalloonWidthPercent Then
  31. ' MsgBox "Percent: " & .RevisionsBalloonWidth
  32. 'Else
  33. ' MsgBox "Points: " & .RevisionsBalloonWidth
  34. 'End If
  35. End With
  36. End Sub
  37.  
  38. Sub fixupNormaldotm()
  39. ' Sets the Normal template to have the settings we would like
  40. ' for future documents
  41. ' to run this, start word and ensure that a single blank doument,
  42. ' based on Normal.dotm, is open (this is by default what you get
  43. ' when you start the Word application without e.g. double-clicking
  44. ' on a doument in Finder)
  45. Dim d As Word.Document
  46. Dim t As Word.Template
  47. Set t = ActiveDocument.AttachedTemplate
  48.  
  49. Set d = Documents.Open(t.FullName)
  50. ' autoopen should run, so that's all we need. If you removeed
  51. ' autoopen, uncomment the following line:
  52. call changeBalloonSettings
  53. d.Save
  54. d.Close
  55. Set d = Nothing
  56. Set t = Nothing
  57. End Sub
Add Comment
Please, Sign In to add comment