J
Jack Sons
Hi all,
In the NG I saw earlier questions about residual "down arrows", I mean that
the filter arrows in the top row will not (all) disappear after finishing
the filtering. Saw no usefull answer in the NG. Maybe it occurs when Excel
(I use Excel 2k with XP) gets "overloaded" because the spreadsheet contains
very much formulas, connections to other complex sheets or workbooks with
graphs (or should I say charts?) etc. Perhaps an area of memory gets clotted
with all kinds of scribblings, like with exhausting the memory space for
system resources under Windows 3.11. When reaching its limits the system
behaves incorrect.
I am frequently confronted with "down arrows". I get rid of them with the
sub below. It works perfectly but by the shifting of rows 1 and 2 the
references in another sheet get corrupted and show #VERW! in stead of $A$1
(I think my Dutch version #VERW! would be #REF! in the English version).
Therefore in the last part of the sub a find and replace function is
executed.
I can execute this sub with a button and of course "from within". I mean
that in the VB window there is a menue called Execute (translated from
Dutch, it is the 7th menue from left), the first instruction is execute
sub/userform.
Now the weird thing: executed from the VB window all goes wll, but executed
from the button the last part is not executed, so #VERW! is not changed into
$A$1.
I would like to know the explanation and what to do about it.
Jack Sons
The Netherlands
----------------------------------------------------------------------------
---------------------
Sub DownArrows_weg()
Application.ScreenUpdating = False
If ActiveWorkbook.Name <> "LEERL03.xls" Then
Exit Sub
Else
Sheets("totaal").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Rows("2:2").Select
Selection.Copy
Rows("1:1").Select
ActiveSheet.Paste
Rows("2:2").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Sheets("resultaten en criteria 03").Select
Calculate
Cells.Replace What:="#VERW!", Replacement:="$A$1", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Calculate
Sheets("totaal").Select
Application.ScreenUpdating = True
Calculate
End If
End Sub
In the NG I saw earlier questions about residual "down arrows", I mean that
the filter arrows in the top row will not (all) disappear after finishing
the filtering. Saw no usefull answer in the NG. Maybe it occurs when Excel
(I use Excel 2k with XP) gets "overloaded" because the spreadsheet contains
very much formulas, connections to other complex sheets or workbooks with
graphs (or should I say charts?) etc. Perhaps an area of memory gets clotted
with all kinds of scribblings, like with exhausting the memory space for
system resources under Windows 3.11. When reaching its limits the system
behaves incorrect.
I am frequently confronted with "down arrows". I get rid of them with the
sub below. It works perfectly but by the shifting of rows 1 and 2 the
references in another sheet get corrupted and show #VERW! in stead of $A$1
(I think my Dutch version #VERW! would be #REF! in the English version).
Therefore in the last part of the sub a find and replace function is
executed.
I can execute this sub with a button and of course "from within". I mean
that in the VB window there is a menue called Execute (translated from
Dutch, it is the 7th menue from left), the first instruction is execute
sub/userform.
Now the weird thing: executed from the VB window all goes wll, but executed
from the button the last part is not executed, so #VERW! is not changed into
$A$1.
I would like to know the explanation and what to do about it.
Jack Sons
The Netherlands
----------------------------------------------------------------------------
---------------------
Sub DownArrows_weg()
Application.ScreenUpdating = False
If ActiveWorkbook.Name <> "LEERL03.xls" Then
Exit Sub
Else
Sheets("totaal").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Rows("2:2").Select
Selection.Copy
Rows("1:1").Select
ActiveSheet.Paste
Rows("2:2").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Sheets("resultaten en criteria 03").Select
Calculate
Cells.Replace What:="#VERW!", Replacement:="$A$1", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False
Calculate
Sheets("totaal").Select
Application.ScreenUpdating = True
Calculate
End If
End Sub