我用了docTemp.BuiltInDocumentProperties.Item(15).Value方法获得了工具-〉字数统计中其他统计数,可是就是得不到-〉“中文字符和朝鲜语单词”。用那个函数才能得到这个统计数呢?
可能调用别的对象以及函数吧。
vba接触才几天,请多多关照。
谢谢各位高手。
可能调用别的对象以及函数吧。
vba接触才几天,请多多关照。
谢谢各位高手。
解决方案 »
- 高手请进,怎样用VB把一张BMP文件,转为MPG文件
- 键盘HOOK的问题
- 判断一个文件是否正在被其他程序使用
- VB程序如何检测另外一个程序正在运行?
- 如何在 SPRED7.0 中调用.bas模块
- ▁▂▃▄▅▆▇▇ 在线等待!!!急急急! ▇▇▆▅▄▃▂▁ 怎样列举网上所有的计算机名称及其共享文件夹
- 求贤若渴 多谢 情帮忙
- 哪位高手知道哪有ReBar的OCX呢? 就是IE上面工具栏的容器 急!!
- 打包后在未装任何软件的98运行当执行到 connection.open 时弹出 运行时错误 3706 未找到提供者,可能未被正确安装。帮忙解决者立即给分。
- 五子棋盘
- 有大虾用过VBExplorer(或EnumDeskVB)吗?有问题请教!
- VB中怎样动态装入vc编写的DLL?代码如下
Private Sub opendoc() Dim docTemp As Document
Dim subdoc As Document
'Set docTemp = Application.Documents("E:\my_job\absent\diary\")
ChangeFileOpenDirectory "E:\my_job\absent\diary" For Each subdoc In ActiveDocument.Subdocuments
If subdoc.HasFile = True Then
Debug.Print subdoc.Path & Application.PathSeparator _
& subdoc.Name
Else
Debug.Print "このサブ文書は保存されていません。"
End If
Next subdoc
'Call getCount(docTemp)
docTemp.Close
End Sub
请高手指点。
我是这么写的。
ChDir "E:\my_job\absent\diary"
myName = Dir("*.doc")
While myName <> ""
myName = Dir()
Wend
请各位高手不吝赐教。谢谢。
Dir Function Example
This example uses the Dir function to check if certain files and directories exist. Dim MyFile, MyPath, MyName
' Returns "WIN.INI" if it exists.
MyFile = Dir("C:\WINDOWS\WIN.INI") ' Returns filename with specified extension. If more than one *.ini
' file exists, the first file found is returned.
MyFile = Dir("C:\WINDOWS\*.INI")' Call Dir again without arguments to return the next *.INI file in the
' same directory.
MyFile = Dir' Return first *.TXT file with a set hidden attribute.
MyFile = Dir("*.TXT", vbHidden)' Display the names in C:\ that represent directories.
MyPath = "c:\" ' Set the path.
MyName = Dir(MyPath, vbDirectory) ' Retrieve the first entry.
Do While MyName <> "" ' Start the loop.
' Ignore the current directory and the encompassing directory.
If MyName <> "." And MyName <> ".." Then
' Use bitwise comparison to make sure MyName is a directory.
If (GetAttr(MyPath & MyName) And vbDirectory) = vbDirectory Then
Debug.Print MyName ' Display entry only if it
End If ' it represents a directory.
End If
MyName = Dir ' Get next entry.
Loop