code for key assignments document

G

gils usenet acct

Hi All,

Thanks again for yall's consistent expert adviced over the years !! :)

I'd like to create a Word file that shows the key assignments.

I assume it is something like:
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintKeyAssignments, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True,
PrintToFile:= _
True, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0

MS Word 2003, Windows XP

tia

Gil

http://www.TenSecondMedicalRecord.com
 
J

Jezebel

Did you try it? Actually, all you need is --

ActiveDocument.PrintOut Item:=wdPrintKeyAssignments
 
G

gils usenet acct

Hi Jez, ...
The code you suggested **prints** the key assignments but I am looking for
them in **digital** form, like a Word document table or just regular text.
I have so many over the years that when I wish to look for open keys to use,
it takes a bit of time and a digital version would make it easier for me to
update and keep track of.
:)
Gil
 
J

Jezebel

Print them into a file. Or to PDF.


gils usenet acct said:
Hi Jez, ...
The code you suggested **prints** the key assignments but I am looking for
them in **digital** form, like a Word document table or just regular text.
I have so many over the years that when I wish to look for open keys to
use, it takes a bit of time and a digital version would make it easier for
me to update and keep track of.
:)
Gil
 
G

gils usenet acct

What should my code look like to make it print to a digital file?

Do I change the word PrintOut to SaveAsFile? Is there an item named
wdKeyAssignments?
Something like ActiveDocument.Insert Item:=wdKeyAssignments?

I am wading around in the dark. :)
tia
Gil
 
J

Jezebel

A simple method is to install a 'Generic text printer' on port FILE:. Print
to that and you end up with a .prn file, which is actually plain text.
 
G

gils usenet acct

One last try, ...

Ok, I installed a generic printer, but still... the code ... the code ...
the code, ... what do I use?
ActiveDocument.PrintOut Item:=wdPrintKeyAssignments PrintWhere:FILE???

I think I'll save this for some other time. I'll check back in later in
the week.
:(
Gil
 
J

Jezebel

If you install a generic printer on port file, then set that as your default
printer and print to it. You don't need to do anything in code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top