How can i write queue data to excel data i have existing excel

from queue check condition now simple if my condition match i have to add that emp deatils from queue to another excel
can you provide me code plz