WD: UseEnvFeeder Argument of ToolsCreateEnvelope Fails |
Q168412
When you use the WordBasic ToolsCreateEnvelope statement to create an envelope, the UseEnvFeeder argument fails to change the tray for feeding envelopes. Using a setting greater than 1 causes the following error when you attempt to run the macro:
WordBasic Err=159: The value of one of the fields is too high.
Although UseEnvFeeder is a valid argument of the ToolsCreateEnvelope statement, it does not function correctly.
To work around this problem use one of the following methods.
Sub MAIN
FeedType$ = "e" ' The letter "e" will select
' Envelope Feeder. To specify
' any other method, use the first
' letter of the feed type.
SendKeys "%te%o%f" + FeedType$ + "{Enter}{Enter}%p"
' %te - Opens the Envelopes And Labels dialog box.
' %o - Selects the Options button.
' %f - Selects the Feed From drop-down list.
' FeedType$ - Selects one of the options in the Form Feed list box.
' {Enter} - Sets the choice from the drop-down list.
' {Enter} - Closes the Envelope Options dialog box.
' %p - Prints the envelope.
End Sub
This macro will simulate the keystrokes required to change the envelope
printing options and will print the envelope.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The WordBasic Help file states the following:
. UseEnvFeeder A number corresponding to the envelope source listed in
the Feed From box: 0 (zero) corresponds to the first
source, 1 to the second source, and so on.
This feature does not work correctly. When printing envelopes using the
ToolsCreateEnvelope command, Word defaults to using the last tray selected
in the Create Envelopes dialog box, regardless of the setting used for the
UseEnvFeeder property.
Additional query words: manual automatic feeding incorrect wrong
Keywords : kbmacro kbdtacode winword word6 word7 word95 kbofficeprog
Issue type : kbbug
Technology :
|
Last Reviewed: March 28, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |