     var spreadsheet = BRAOfficeDocumentPackage()
     var worksheet = BRAWorksheet()
     
-    func AAA() ->(A: String, B: BRAOfficeDocumentPackage, C: BRAWorksheet){
+    //XLSXファイルのインスタンスをセットするメソッド
+    func SetXLSX() -> BRAWorksheet{
         
         if(flag){
             documentPath = NSBundle.mainBundle().pathForResource(TEST, ofType: "xlsx")!
             spreadsheet = BRAOfficeDocumentPackage.open(documentPath)
             worksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
             flag = false
-            return (documentPath,spreadsheet,worksheet)
+            return (worksheet)
         }else{
-            return (documentPath,spreadsheet,worksheet)
+            return (worksheet)
         }
     
     }

        let shiftnsdate = MonthlySalaryShow().DateSerial(MonthlySalaryShow().Changecalendar(shiftyearandmonth.year, calender: "JP"), month: shiftyearandmonth.startcoursmonth, day: 1)
        let c = NSCalendar.currentCalendar()
        let monthrange = c.rangeOfUnit([NSCalendarUnit.Day],  inUnit: [NSCalendarUnit.Month], forDate: shiftnsdate)
        
        let XLSX = self.AAA()
        
//        let documentPath = XLSX.A
//        let spreadsheet = XLSX.B
        let worksheet = XLSX.C
        
        
        
        var date = 11
        let staffcellposition = self.StaffCellPositionGet()     //スタッフの名前が記載されているセル場所 ex.)F8,F9

        let username = DBmethod().UserNameGet()
        let staffcellposition = self.StaffCellPositionGet()
        
        let worksheet = self.SetXLSX()
        
        var userposition = ""
        
