Macro skipping one step

Assamita

Board Regular
Joined
Sep 23, 2011
Messages
120
Good morning everyone.
I have a macro running automatically everyday that calls to other macros like this:

Code:
Call BL_NDXCall BL_DACH
Call BL_DACHTS
Call BL_BEITNL
Call BL_UK
Call BL_FR
Call BL_IB
This used to work a while ago, but ever since a couple of weeks ago, the macro is skipping some steps.
At the beginning, it skiped either BL_DACH or BL_DACHTS alternatively, but for the few last days, it has always skipped BL_DACHTS only.
When it has finished with all of them, I manually execute that one in particular, and it runs properly as expected, so there's not a code error on it.

Any idea what could be causing this? it's driving me crazy because it's not giving an error message or nothing. These macros work with several files and, in the past, if one of these files were corrupted, it would fail to execute, but in this case, there's no corrupted file, and also, when that happened, it would stop the process for the rest of the macros (so if there was a corrupted file when BL_UK was being executed, BL_FR and BL_IB wouldn't run at all). In this case, the rest of the macros are executed properly.

Thank you
 

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
7,778
Office Version
365
Platform
Windows
That cant happen. Rename your BL_DACHTS sub to say BL_DACHTS1 then paste this in the module:

Code:
Sub BL_DACHTS()

MsgBox "Hello"

End Sub
Run your other macro. Do you see a message box? If not then we need the full code of all the macros.
 

Assamita

Board Regular
Joined
Sep 23, 2011
Messages
120
Hi, I've already tried the above and when run manually, it does give me the message window. Last thing to try is to create the msgbox and let it run automatically, see if I get the message too. Unfortunately, it only runs once a day, so I'll have to wait till next week to try it (it runs from monday to friday).

The full code of the macros is way too long, and it's basically the same for all of them, with slight differences in each one. I actually copy-pasted them and modified them afterwards. And again, when run individually, they do work as expected.
I'll try the msgbox next week and let you know.

Thank you
 

Forum statistics

Threads
1,081,747
Messages
5,361,038
Members
400,610
Latest member
ebey

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top