I have a daily xlsx file output which I take and add to a Master Data xlsx. The data uses a primary key to compare matches, adds and deletes from one day to the next. I currently do this manually. I started messing around a little with utilizing "openpyxl" to do this but haven't gotten very far.
I want to use openpyxl (or another module that would be able to do this task) to load the daily file, copy the data up to the last column and row and then append it to the Master Data xlsx.
It would be nice to eventually take "newest date" primary key compared to "newest date-1" primary key to fill out the "added/match" and "delete/match" columns in the Master Data. First things first though, just getting through the append. I honestly have not gotten far at all. I know the code below is incorrect, however I think it gives an idea of what I am trying to do. The daily output and master data tabs/files have the same number of columns with the same headers in each.
wb = xl.load_workbook('ReleasedPRsLTLT-Daily.xlsx')
M = xl.load_workbook('ReleasedPRsLTLT-Master.xlsx')
sheet = wb.get_sheet_by_name('DailyAppend')
daily = sheet.range(A1:Max_Row: A1:Max_Column))
M.append(daily)
Any help is greatly appreciated, thank you!