Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xlwings as xw
- fn = r'D:tempBook1.xlsx'
- wb = xw.Book(fn)
- sh = wb.sheets['Sheet1']
- sh.range('A2').value *= 10
- wb.save()
- # закрыть Excel файл (сам MS Excel при этом не закрывается)
- wb.close()
Add Comment
Please, Sign In to add comment