Skip to content

Instantly share code, notes, and snippets.

@janpipek
Last active August 29, 2015 14:17
Show Gist options
  • Save janpipek/41d2c6958c8e04bf99e3 to your computer and use it in GitHub Desktop.
Save janpipek/41d2c6958c8e04bf99e3 to your computer and use it in GitHub Desktop.
Makro pro zobrazení počtu normostran ve Wordu
Sub Normostrany()
Dim Title As String
Dim CharCount As Long
Dim Message As String
Dim Pages As Double
CharCount = ActiveDocument.BuiltInDocumentProperties("Number of characters (with spaces)")
Pages = CharCount / 1800#
Title = "Počet normostran"
Message = LTrim(Format(Pages, "###0.00")) + " normostran"
MsgBox Message, vbOKOnly, Title
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment