Last active
August 29, 2015 14:17
-
-
Save janpipek/41d2c6958c8e04bf99e3 to your computer and use it in GitHub Desktop.
Makro pro zobrazení počtu normostran ve Wordu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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