WD: ToolsCreateLabels Uses AutoText Entry Instead of LabelText |
Q123100
If you use the LabelAutoText argument with the ToolsCreateLabels WordBasic
statement, Microsoft Word ignores the LabelText argument and inserts the
text of the specified AutoText entry instead.
For example, the following statement inserts the ToolsCreateLabels1
AutoText entry specified by the LabelAutoText argument instead of the "123"
string specified by the LabelText argument:
ToolsCreateLabels .ExtractAddress = 0, .LabelListIndex = 0, .LabelIndex =
48, .LabelDotMatrix = 0, .LabelTray = 1, .PrintBarCode = 0, .SingleLabel =
0, .LabelRow = "1", .LabelColumn = "1", .AddToDocument, .LabelAutoText =
"ToolsCreateLabels1", .LabelText = "123"
When you include the LabelAutoText argument as part of a ToolsCreateLabels statement, Word always uses that argument, even if the statement also contains a LabelText value.
To work around this problem, use either of the following methods.
ToolsCreateLabels .ExtractAddress = 0, .LabelListIndex = 0, \
.LabelIndex = 48, .LabelDotMatrix = 0, .LabelTray = 1, \
.PrintBarCode = 0, .SingleLabel = 0, .LabelRow = "1", \
.LabelColumn = "1", .AddToDocument, .LabelText = "123" 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.
Additional query words: macros Tools EnvelopesAndLabels
Keywords : kbmacro wordnt kbautotext ntword macword word6 word7 word95
Issue type : kbprb
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |