VBA中如如设计宋体字体?
<p>VBA中如何将文字样式的字体设置为宋体,TxtStyle.Name="宋体" 或TxtStyle.Name="simsun.ttf" 或TxtStyle.Name="simsun.ttc"</p><p>都通不过,不知道该如何呢?</p> <p><a href="http://bbs.mjtd.com/forum.php?mod=viewthread&tid=24260">http://bbs.mjtd.com/forum.php?mod=viewthread&tid=24260</a></p><p></p><p></p><p>***************************************************<br/>西北凡人http://www.abofanyi.com/blog</p><p></p> Public Sub 字体样式() '============设置字体============<br/> Dim typeface As String<br/> Dim textbold As Boolean<br/> Dim textitalic As Boolean<br/> Dim textcharset As Long<br/> Dim textpfamily As Long<br/> acadDoc.ActiveTextStyle.GetFont typeface, textbold, textitalic, textcharset, textpfamily<br/> typeface = "宋体"<br/> acadDoc.ActiveTextStyle.SetFont typeface, textbold, textitalic, textcharset, textpfamily<br/> acadDoc.Regen acActiveViewport<br/>End Sub 写了,灰常有用 billtanglu 发表于 2008-4-9 09:40 static/image/common/back.gifPublic Sub 字体样式() '============设置字体============ Dim typeface As String Dim textbol ...
谢啦,灰常有用
页:
[1]