Thanks for such a nice explanation. I am trying to run this code on XP (SP3) and using Fujitsu 6140 ADF scanner. The issue is the code keeps running even the feeder is empty....