Writing Queue data into Excel

May I know what is the purpose of these? Why is the condition quIsItems = 100? Thank you