vb操作word表格,在指定单元格中指定起始位置和终止位置之间的字符设置下划线的问题
如在第三行,第三列,第六个字符与第十个之间字符设置下划线
Set wordapp = CreateObject("Word.Application")
Set worddoc = wordapp.Documents.Open(App.Path & "\1.doc")
wordapp.Visible = True
worddoc.Tables(1).Cell(3, 3).Range(6,10).Font.Underline = wdUnderlineSingle老是提示有错,不知为何?请高手赐教!
如在第三行,第三列,第六个字符与第十个之间字符设置下划线
Set wordapp = CreateObject("Word.Application")
Set worddoc = wordapp.Documents.Open(App.Path & "\1.doc")
wordapp.Visible = True
worddoc.Tables(1).Cell(3, 3).Range(6,10).Font.Underline = wdUnderlineSingle老是提示有错,不知为何?请高手赐教!
解决方案 »
- 在VB环境中运行正常,但在VB中生产exe文件后一运行就出错:运行时错误:'-2147023898 (800703e6)': Automation 错误
- 如何开放一个端口
- 我请人写了个EXE,双击运行时自动注册成系统服务运行,但是重新启动时,有的电脑正常,有的报内存溢出错误,怎办?
- 提示“加载DLL错误” 为什么啊?
- 如何知道一个MPEG播放文件的长度。
- 如何保存在DataGrid控件中新增,編輯過的數據呀,在線結貼
- *************100分求解****************
- 用winsock能否检测出局域网中的所以电脑名、IP。
- 怎么样在picturebox指定点(x0,y0)处显示一个数字,用print方法?
- 请问在vb中如何检测操作系统版本(包含win2000和win me)???
- 有人能把这个C程序翻译成VB么
- 急急急,求帮助!
'
' Macro2 Macro
' 宏在 2012-05-31 由 [email protected] 录制
'
Selection.MoveDown Unit:=wdLine, Count:=3
Selection.MoveRight Unit:=wdCharacter, Count:=8
Selection.MoveRight Unit:=wdCharacter, Count:=5, Extend:=wdExtend
Selection.Font.UnderlineColor = wdColorAutomatic
Selection.Font.Underline = wdUnderlineSingle
End Sub