-
WSRConnell
AskWoody LoungerLegare,
Thank you so much for taking the time to SOLVE my problem. So often the problems or questions posted here must require fairly simple answers, so it takes someone special to look beyond the obvious. I was sure my problem had to be more than coding because of the other symptoms. Initially, VBE was not acting normally. As I gradually commented-out bits of code to zero-in on the cause, other symptoms appeared. After a code break, when I clicked END instead of DEBUG, Excel would hang and I’d have to use Task Manager to kill it. I was about to use a time delay to see if that would help.
I am writing this before I have taken a good look at your code because I wanted to let you know how much I appreciate your effort. But it appears you have written code to replace the advanced filter method.
When you say “It is most likely a memory leak in the Advanced Filter method”, are you suggesting we avoid the advance filter in a loop? Are you aware of a KB article about this? Is there any way I can help get the word out about this? -
WSRConnell
AskWoody LoungerLegare,
Thank you so much for taking the time to SOLVE my problem. So often the problems or questions posted here must require fairly simple answers, so it takes someone special to look beyond the obvious. I was sure my problem had to be more than coding because of the other symptoms. Initially, VBE was not acting normally. As I gradually commented-out bits of code to zero-in on the cause, other symptoms appeared. After a code break, when I clicked END instead of DEBUG, Excel would hang and I’d have to use Task Manager to kill it. I was about to use a time delay to see if that would help.
I am writing this before I have taken a good look at your code because I wanted to let you know how much I appreciate your effort. But it appears you have written code to replace the advanced filter method.
When you say “It is most likely a memory leak in the Advanced Filter method”, are you suggesting we avoid the advance filter in a loop? Are you aware of a KB article about this? Is there any way I can help get the word out about this? -
WSRConnell
AskWoody LoungerSteve,
The macro breaks at the line, “Range(“Range(“Advances”).AdvancedFilter Action:=xlFilterCopy, _” etc.
The value of “Firm” is different each time through the loop – see “Firm” column in Advances column G.
I have removed te code that requires network drive mappings so that it now looks for and creates folders on the C drive.
I have assigned values to the date variables.
It still breaks at a different spot each time. I wonder if the code is somehow out-running Excel’s refresh rate.
Modified code attached. -
WSRConnell
AskWoody LoungerSteve,
The macro breaks at the line, “Range(“Range(“Advances”).AdvancedFilter Action:=xlFilterCopy, _” etc.
The value of “Firm” is different each time through the loop – see “Firm” column in Advances column G.
I have removed te code that requires network drive mappings so that it now looks for and creates folders on the C drive.
I have assigned values to the date variables.
It still breaks at a different spot each time. I wonder if the code is somehow out-running Excel’s refresh rate.
Modified code attached. -
WSRConnell
AskWoody LoungerSteve,
The macro is “BrokerFeesPartTwo” and it’s breaking at line 158 with “AdvancedFilter method of Range class failed”
Thanks -
WSRConnell
AskWoody LoungerSteve,
The macro is “BrokerFeesPartTwo” and it’s breaking at line 158 with “AdvancedFilter method of Range class failed”
Thanks -
WSRConnell
AskWoody LoungerHans,
Following your post about my error-trapping I reviewed and revised my process and moved the folder checking out of the loop. Now that other errors are no longer ignored, a new problem has been revealed! On the 20th record, the advanced filter fails. Have I overloaded a stack somewhere or something? Do you have the time or patience to look at my revised code? -
WSRConnell
AskWoody LoungerHans,
Following your post about my error-trapping I reviewed and revised my process and moved the folder checking out of the loop. Now that other errors are no longer ignored, a new problem has been revealed! On the 20th record, the advanced filter fails. Have I overloaded a stack somewhere or something? Do you have the time or patience to look at my revised code? -
WSRConnell
AskWoody LoungerHans,
Your error-handling advice is well-taken. I will try that. -
WSRConnell
AskWoody LoungerHans,
Your error-handling advice is well-taken. I will try that. -
WSRConnell
AskWoody LoungerSteve,
I don’t think I can be specific. The original post describes the problem. There is no particular point in the code at which the problem occurs , but it’s during the “For Each cell In FirmRange” loop that the code just seems to cease functioning. -
WSRConnell
AskWoody LoungerSteve,
I don’t think I can be specific. The original post describes the problem. There is no particular point in the code at which the problem occurs , but it’s during the “For Each cell In FirmRange” loop that the code just seems to cease functioning. -
WSRConnell
AskWoody LoungerBrokerFeesPartTwo is the problem.
In some cases it is reassuring to the user to see the macro do its thing. I use the ScreenUpdating on longer macros and after the user is familiar with it. -
WSRConnell
AskWoody LoungerBrokerFeesPartTwo is the problem.
In some cases it is reassuring to the user to see the macro do its thing. I use the ScreenUpdating on longer macros and after the user is familiar with it. -
WSRConnell
AskWoody LoungerHans,
Thank you for your interest. The original file has a great deal of information I cannot share, so I have made changes that will hopefully not mask the problem.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
My Simple Word 2010 Macro Is Not Working (Awaiting moderation)
by
mbennett555
4 hours, 6 minutes ago -
Office gets current release
by
Susan Bradley
8 hours, 49 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 1 hour ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
9 hours, 53 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 2 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 12 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 14 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 14 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 15 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 15 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 4 hours ago -
Enabling Secureboot
by
ITguy
1 day, 11 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 23 hours ago -
No more rounded corners??
by
CWBillow
1 day, 19 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 9 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 12 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 14 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 9 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 22 hours ago -
May preview updates
by
Susan Bradley
2 days, 9 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 1 hour ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 14 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 11 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 13 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 13 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
11 hours, 22 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 1 hour ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
2 days ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 15 hours ago -
Another test post
by
gtd12345
4 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.