-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a Class to easily connect to the active Workboook #30
Comments
Can't seem to make this work if the Workbook is unsaved:
|
Maybe it's still worth doing it for saved spreadsheets only. Still saves you from looking up the path, and copy/pasting it. |
For unsaved Workbooks, one can do |
This code succeeds most of the time (:-) to get an active but unsaved workbook:
|
Oh great - yeah haven't looked at this since the implementation of |
To solve the problem with various instances, there seems to be no other solution than this: http://stackoverflow.com/a/2877943/918626
then using |
this should now be easy after the HWND refactor |
closed by ce378fd |
Probably best to make
wb = ActiveWorkbook()
orwb = Workbook.active()
as otherwise `wb = Workbook(r'path\to\file.xls') would have to have an additional Parameter which makes it clunky.The text was updated successfully, but these errors were encountered: