由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Re: [转载] Please Help on word 2000 with VBA !
相关主题
a vba question. please helpvbscript 转换excel文件到csv文件格式问题?
嵌套循环,层数可变 怎么实现basic question
why vb code faster than csharp???Please Help me with this Excel VBA problem //bow
新手请教一个关于VB macro的问题VBA question
need help on System.Web.HttpResponse objectVBA question
VB中怎么产生一个有特殊ASCII字符的string菜鸟一问: VBA 画方块图方便吗
请教如何在Powerpoint中使用Macros改变文字颜色Excel VBA protection.
求助!这段code如何使用?Interfacing Microsoft Excel VBA with FORTRAN (转载)
相关话题的讨论汇总
话题: set话题: vba话题: dim话题: rng话题: word
进入Programming版参与讨论
1 (共1页)
j***e
发帖数: 186
1
Sub SeparatePagesFromDocument()
Dim rng As Range
Dim i As Integer
Dim oDoc As Document, nDoc As Document
Set oDoc = ActiveDocument
For i = 1 To oDoc.BuiltInDocumentProperties(wdPropertyPages)
Set rng = oDoc.GoTo(what:=wdGoToPage, which:=wdGoToAbsolute, Count:=i)
rng.Select
Set rng = Selection.Bookmarks("\page").Range
rng.Select
rng.Copy
Set nDoc = Documents.Add
nDoc.Range.PasteSpecial
nDoc.SaveAs "C:\temp\" & Replace(oDoc.Name, ".doc", "") & "-Part-" & i
nDoc.Close
Next i
Set r
1 (共1页)
进入Programming版参与讨论
相关主题
Interfacing Microsoft Excel VBA with FORTRAN (转载)need help on System.Web.HttpResponse object
菜鸟求 VB/VBA SQL入门书籍推荐VB中怎么产生一个有特殊ASCII字符的string
正在学excel 中的VBA,我的"编辑"下面怎么没有"定位"?请教如何在Powerpoint中使用Macros改变文字颜色
Help: How to pass a cell matrix as a variable in the arguments of a VBA function求助!这段code如何使用?
a vba question. please helpvbscript 转换excel文件到csv文件格式问题?
嵌套循环,层数可变 怎么实现basic question
why vb code faster than csharp???Please Help me with this Excel VBA problem //bow
新手请教一个关于VB macro的问题VBA question
相关话题的讨论汇总
话题: set话题: vba话题: dim话题: rng话题: word