Microsoft KB Archive/96559

{|
 * width="100%"|

Excel: Second Argument in POKE Should Contain Backslash

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, versions 4.0, 4.0a, 5.0

-

SUMMARY
The first example for the POKE function in the version 5.0 &quot;Online Help&quot; and the version 4.0 &quot;Microsoft Excel Function Reference&quot; is incorrect. If you try to use the example given to poke data to item_text &quot;StatOfDoc&quot;, you will receive a #REF! error value. The example should contain a backslash (&quot;\&quot;) in the second argument.

Version 5.0
From the Help Menu choose Contents, then select Reference Information. Select Microsoft Excel Macro Functions Contents, then choose the Search button and type Poke. Select Show Topics then Go To and you will see the same error under Examples.

Version 4.0
On page 329 of the &quot;Microsoft Excel Function Reference&quot; the example:

  POKE(SendChanl,&quot;StartOfDoc&quot;,C3)

formula should read:

  POKE(SendChanl,&quot;\StartOfDoc&quot;,C3)