Re: [VBA ] 如何將替換的文字改變顏色
試試看這個:
With objSelection.Find.Replacement
If cheSelect(0).Value = 1 Then .Color = picColor(0).BackColor
'網底色彩
If cheSelect(1).Value = 1 Then .Shading.BackgroundPatternColor =
picColor(1).BackColor
'框線色彩
If cheSelect(2).Value = 1 Then .Borders.OutsideLineStyle =
wdLineStyleSingle: .Borders.OutsideColor = picColor(2).BackColor
'底線
If cheSelect(3).Value = 1 Then .Underline = wdUnderlineSingle
'粗體
If cheSelect(4).Value = 1 Then .Bold = True
'斜體
If cheSelect(5).Value = 1 Then .Italic = True
End With
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.115.76.99
※ 編輯: shipship 來自: 59.115.76.99 (07/22 22:56)
→
07/22 23:38, , 1F
07/22 23:38, 1F
推
07/22 23:44, , 2F
07/22 23:44, 2F
→
07/23 16:04, , 3F
07/23 16:04, 3F
→
07/23 16:04, , 4F
07/23 16:04, 4F
推
07/30 01:38, , 5F
07/30 01:38, 5F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):