home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.apps
- Path: sparky!uunet!kithrup!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!rpi!psinntp!psinntp!panix!rryan
- From: rryan@panix.com (Rob Ryan)
- Subject: Re: Even and odd
- Message-ID: <1992Nov17.161236.8694@panix.com>
- Date: Tue, 17 Nov 1992 16:12:36 GMT
- References: <per.ytterberg.48.0@neurofys.uu.se>
- Organization: Panix, NYC
- Lines: 34
-
- In <per.ytterberg.48.0@neurofys.uu.se> per.ytterberg@neurofys.uu.se (Per Ytterberg) writes:
-
- >This has been asked before, I know that, but where can I find a macro to
- >print even and odd pages in Word for Windows 2.0?
-
- Something like this should do it:
-
- Sub MAIN
- Dim dlg As DocumentStatistics
- ToolsRepaginateNow
- GetCurValues dlg
- n = Val(dlg.Pages)
- If n < 1 Then End
- For i = 1 To n Step 2
- FilePrint .Range = 3, .From = Str$(i), .To = Str$(i)
- Next
- If(n Mod 2 = 1) Then
- msg$ = "Put all the pages except the last one"
- Else
- msg$ = "Put all the pages"
- End If
- msg$ = msg$ + " back into the printer and press Ok when ready to print."
- If(MsgBox(msg$, "Printing Even Pages", 49) = - 1) Then
- For i = 2 To n Step 2
- FilePrint .Range = 3, .From = Str$(i), .To = Str$(i)
- Next
- End If
- End Sub
-
- --
- Rob Ryan
- Internet: rryan@panix.com or Robert_Ryan@brown.edu
- Bitnet: ROBR@BROWNVM
- Compu$erve: 70324.227@compuserve.com
-