Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Macro Cannot Scroll Chart Sheet


View products that this article applies to.

This article was previously published under Q213662

↑ Back to the top


Symptoms

When you use either the SmallScroll or LargeScroll methods in a Microsoft Visual Basic for Applications Sub procedure, you may receive an error message similar to one of the following:
Run-time error '1004':
SmallScroll method of Window class failed
-or-
Run-time error '1004':
LargeScroll method of Window class failed

↑ Back to the top


Cause

This error message may occur if a chart sheet is active when your Sub procedure calls either the SmallScroll or LargeScroll method.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

In Visual Basic for Applications, you can use the SmallScroll and LargeScroll methods to scroll a worksheet or an Excel macro sheet window. Each method accepts up to four arguments, indicating the number of rows or columns to scroll down, up, right, and left.

↑ Back to the top


References

For more information about the SmallScroll method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type SmallScroll Method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB213662, kbprogramming, kbnofix, kberrmsg, kbdtacode, kbbug

↑ Back to the top

Article Info
Article ID : 213662
Revision : 5
Created on : 10/10/2006
Published on : 10/10/2006
Exists online : False
Views : 232