Re: How do I print 100+ .doc from a SINGLE request? sorry for wrong group
Re: How do I print 100+ .doc from a SINGLE request? sorry for wrong group
"Robert A. Macy" <macy@california.com> wrote in message
news:08884fdf-8b9d-4a94-90b9-e33be902d32c@s33g2000pri.googlegroups.com...
On May 22, 2:12 am, "Gary S. Terhune" <none> wrote:
> No kidding! Sorry about that Robert. Belonged to the thread above. That's
> what I get for using Jeff as a reference mark, <g>.
>
> --
> Gary S. Terhune
> MS-MVP Shell/Userwww.grystmill.com
>
> "Jeff Richards" <JRicha...@msn.com.au> wrote in message
>
> news:%233ATx29uIHA.548@TK2MSFTNGP06.phx.gbl...
>
>
>
> >I suspect your comment is actually meant for the silly one, who has (at
> >last) provided a sample.
> > --
> > Jeff Richards
> > MS MVP (Windows - Shell/User)
> > "Gary S. Terhune" <none> wrote in message
> >news:O4LSil4uIHA.748@TK2MSFTNGP05.phx.gbl...
> >> I'm outta here. Robert, you appear to have something to hide or you'd
> >> post some sample lines, or the whole file (on some free webspace). You
> >> could even email it to me and *I* would post it.- Hide quoted text -
>
> - Show quoted text -
Jeff, Gary,
the macro I use is a copy of the one at the URL, with the 'exact' path
in the computer to get me to the folder of .doc files
when I ran the macro in 'debug' mode, nothing happened [I don't know
how to make it step along], just stuck on the first line, the title
line.
Thank you for not flaming me here. I apologize for being in the wrong
group, but you have no idea how hard it is to navigate through the
myriad of usenet groups to find something close to what I need. Plus,
I definitely don't want Word on XP group, they'd just tell me to go
buy another Word software, or something.
For me, since Word is running on Win98, which probably has its own
quirks, I thought someone here might have gone through this and could
just say, "do this..." and I'd be done.
Do either of you have a copy of a macro that you have used
successfully on your Win98 OS? All I would have to do [maybe] is
change the file directory path and it should work.
Is there some literature that describes this macro language and
describes the steps to understand what's happening as the macro steps
along. For example, the phrase
while ( dir() )
[may have misquoted this line, but you have the gist]
Forgot to clarify: this system is Win98 with the application Word 97
another system is WinXP with the application Word 2003 with the
printer on a network.
Robert
Robert,
In 98 open one of your MS Word 97 .doc files or create a new .doc file.
On the menu bar click Tools > Macro > Macros... > Visual Basic Editor.
Click once on "Project (Your open .doc name)" to highlight it.
On the Menu bar click Insert > Module.
Type or copy/paste the below code into the Code window. **Note: Change the path
"E:\My Tests\" on the line sMyDir = to your actual path where your .doc files
are.
Sub PrintAllDocs()
Dim sMyDir As String
Dim sDocName As String
' The path to obtain the files.
sMyDir = "E:\My Tests\"
sDocName = Dir(sMyDir & "*.DOC")
While sDocName <> ""
' Print the file.
Application.PrintOut FileName: = sDocName
' Get next file name.
sDocName = Dir()
Wend
End Sub
Save your .doc file that contains the new module in the same directory/folder
that you have the .doc files you want to print.
Open the .doc file containing the module or any other .doc file which is in the
same directory/folder as the file with the module.
On the Menu bar click Tools > Macro > Macros....
Select the module you created that is listed in the Macro name list.
Click Run.
--
Brian A. Sesko { MS MVP_Windows Desktop User Experience }
Conflicts start where information lacks.
http://basconotw.mvps.org/
Suggested posting do's/don'ts:
http://dts-l.com/goodpost.htm
How to ask a question:
http://support.microsoft.com/kb/555375