Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Application.ScreenUpdating = False funktioniert nicht

528 views
Skip to first unread message

Dr. Dietmar Müller

unread,
Mar 31, 2004, 5:37:58 AM3/31/04
to
Ich habe mir von Microsoft eine Excel-Datei mit
Beispielcode geholt (SampleVBA.xls).
Beim Ausführen der Methode AttachLabelsToPoints()
wird Application.ScreenUpdating = False gesetzt.
Im Debugger ist der Wert aber unverändert True.

Was ist die Ursache?
Hier der Anfang der Methode:

Sub AttachLabelsToPoints()
'This checks to make sure that the attachlable only
'runs once between resets
If resetcode = False Then
MsgBox "Please Reset Chart before applying labels",
vbCritical
Exit Sub
End If
' Dimension variables.
Dim Counter As Integer
Dim SourceWorksheet As Variant, xVals As Variant,
xCell As Variant
Dim xLabel As Variant

' Disable screen updating while the subroutine runs.
Application.ScreenUpdating = False

' Store the name of the active chart in "ChartName".
ActiveSheet.ChartObjects(1).Select
...

Melanie Breden

unread,
Mar 31, 2004, 5:59:15 AM3/31/04
to
Hallo Dietmar,

Dr. Dietmar Müller schrieb:

wann und wie überprüfst du die ScreenUpdating-Eigenschaft?
Zeige das Überwachungsfenster an und ziehe den Ausdruck:
'Application.ScreenUpdating' mit gedrückter linker Maustaste in das Fenster.

Starte die Prozedur im Einzelschrittmodus (F8).
Dann kannst du den Wert der Eigenschaft im Überwachungsfenster genau verfolgen.

--
Mit freundlichen Grüssen

Melanie Breden
- Microsoft MVP für Excel -

http://excel.codebooks.de (Das Excel-VBA Codebook)
#Excel-Auftragsprogrammierung#

0 new messages