IT-Academy

VBA Excel Word

Dec 10th, 2015
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2.  
  3. Sub formatujDokumentWord()
  4.    
  5.     Dim objWord
  6.     Dim objDokument
  7.     Dim objVyber
  8.     Dim objTvary
  9.    
  10.     Set objWord = CreateObject("Word.Application")
  11.     Set objDokument = objWord.Documents.Open("D:\Subor.docx")
  12.     objWord.Visible = True
  13.     Set objVyber = objWord.Selection
  14.    
  15.     objVyber.WholeStory
  16.     objVyber.Font.Name = "Calibri"
  17.     objVyber.Font.Bold = True
  18.  
  19.    
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment