Creating a while loop to check if there is an available spreadsheet

@mohamad_ibrahim_Shah