在线求救:请问VBA(WORD)中如何改变字体颜色? xxx.font.color=rgb(intR,intG,intB) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 cdlg是一个commanddialog控件Private Sub Command1_Click()Dim mApp As Word.ApplicationDim mDoc As Word.DocumentSet mApp = New Word.ApplicationmApp.Visible = TrueSet mDoc = mApp.Documents.Addcdlg.ShowColor'--------------------------------- Selection.TypeText Text:="~!·~#·#!·¥3" Selection.MoveLeft Unit:=wdCharacter, Count:=9, Extend:=wdExtend With Selection.Font .NameFarEast = "宋体" .NameAscii = "Times New Roman" .NameOther = "Times New Roman" .Name = "Times New Roman" .Size = 10.5 .Bold = False .Italic = False .Underline = wdUnderlineNone .UnderlineColor = wdColorAutomatic .Strikethrough = False .DoubleStrikeThrough = False .Outline = False .Emboss = False .Shadow = False .Hidden = False .SmallCaps = False .AllCaps = False .Color = cdlg.Color .Engrave = False .Superscript = False .Subscript = False .Spacing = 0 .Scaling = 100 .Position = 0 .Kerning = 1 .Animation = wdAnimationNone .DisableCharacterSpaceGrid = False .EmphasisMark = wdEmphasisMarkNone End With'-----------------------------------End Sub 请教--用VB写一个批处理程序 内嵌PDF控件问题 怎样将两个dbgrid中的数据导出到excel的多个sheet页中 如何将数据库指针移动到特定行? 请教各位一个小程序 如何得到一个记录集的行数 第二次保存时出现错误(实时错误 '1004' 对象 'Range' 的方法 '_Global' 失败) 如何高效的判断一个字符串是否仅由某几个批定的字符组成? 如何在窗口中实现电视墙 adodb.recordset 的问题。你是高手答对再多给20 分! 怎么得到数据库中所有表的表名和某一个表中的所有字段的名称 VB的串行口通信
Dim mApp As Word.Application
Dim mDoc As Word.Document
Set mApp = New Word.Application
mApp.Visible = True
Set mDoc = mApp.Documents.Add
cdlg.ShowColor'--------------------------------- Selection.TypeText Text:="~!·~#·#!·¥3"
Selection.MoveLeft Unit:=wdCharacter, Count:=9, Extend:=wdExtend
With Selection.Font
.NameFarEast = "宋体"
.NameAscii = "Times New Roman"
.NameOther = "Times New Roman"
.Name = "Times New Roman"
.Size = 10.5
.Bold = False
.Italic = False
.Underline = wdUnderlineNone
.UnderlineColor = wdColorAutomatic
.Strikethrough = False
.DoubleStrikeThrough = False
.Outline = False
.Emboss = False
.Shadow = False
.Hidden = False
.SmallCaps = False
.AllCaps = False
.Color = cdlg.Color
.Engrave = False
.Superscript = False
.Subscript = False
.Spacing = 0
.Scaling = 100
.Position = 0
.Kerning = 1
.Animation = wdAnimationNone
.DisableCharacterSpaceGrid = False
.EmphasisMark = wdEmphasisMarkNone
End With
'-----------------------------------
End Sub