Add Formatted Text to a Word Document

北京较好的儿科

北京较好的儿科

2016-02-19 09:25

生活已是百般艰难,为何不努力一点。下面图老师就给大家分享Add Formatted Text to a Word Document,希望可以让热爱学习的朋友们体会到设计的小小的乐趣。
Demonstration script that displays formatted data in a Microsoft Word document. 
代码如下:

Set objWord = CreateObject("Word.Application")

objWord.Visible = True
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection

objSelection.Font.Name = "Arial"
objSelection.Font.Size = "18"
objSelection.TypeText "Network Adapter Report"
objSelection.TypeParagraph()

objSelection.Font.Size = "14"
objSelection.TypeText "" & Date()
objSelection.TypeParagraph()



展开更多 50%)
分享

猜你喜欢

Add Formatted Text to a Word Document

Web开发
Add Formatted Text to a Word Document

Add a Formatted Table to a Word Document

Web开发
Add a Formatted Table to a Word Document

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

Add a Table to a Word Document

Web开发
Add a Table to a Word Document

Add a Picture to a Microsoft Word Document

Web开发
Add a Picture to a Microsoft Word Document

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

Open and Print a Word Document

Web开发
Open and Print a Word Document

text

Linux Linux命令 Linux安装 Linux编程 Linux桌面 Linux软件 Linux内核 Linux管理
text

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

通过HSODBC访问mysql的实现步骤

通过HSODBC访问mysql的实现步骤

List all the Databases on a SQL Server

List all the Databases on a SQL Server
下拉加载更多内容 ↓