not sure what macro you are using I use this one
target nearest object,harvester blade(you done need this if you just want doors),use object,target next object,harvester blade,use object,target next object,harvester blade,use object
you can leave the blade out
the important part is to have it do odd number of time in my example it targets the nearest 3 objects
i found that doing even numbers it would sometimes open the door and then close it