Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.68K
1 Posted Topic
Yes, you most definitely can use a variable. [code] from win32com.client import Dispatch def OpenExcel(): xlApp = Dispatch("Excel.Application") xlApp.Visible = 1 xlApp.Workbooks.Add() return xlApp.ActiveSheet xlSheet = OpenExcel() row = 1 xlSheet.Rows(row).Insert() [/code]
The End.
jvangeld