Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import win32com.client as win32com
- from win32com.client import constants
- xl = win32com.gencache.EnsureDispatch('Excel.Application')
- xl.Visible = True
- wb = xl.Workbooks.Add ()
- Sheet1 = wb.Sheets("Sheet1")
- # Fill in some summy formulas
- for i in range(10):
- Sheet1.Cells(i+1,1).Value = "=10*"+str(i+1)
- Sheet1.Range("A1:A16").Copy()
- Sheet1.Range("C1").Select()
- Sheet1.PasteSpecial(Paste=constants.xlPasteValues)
- TypeError: Paste() got an unexpected keyword argument 'Paste'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement