Skip to content
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

Mac: CleanUp macro causes troubles when run from Python #70

Closed
fzumstein opened this issue Sep 25, 2014 · 1 comment
Closed

Mac: CleanUp macro causes troubles when run from Python #70

fzumstein opened this issue Sep 25, 2014 · 1 comment

Comments

@fzumstein
Copy link
Member

It's causing errors when driven from Python. It may be enough though to simply ignore errors in Show Log_file block in case it doesn't exist:

'Show the LOG_FILE as MsgBox if not empty
On Error Resume Next
If ReadFile(LOG_FILE) <> "" Then
    Call ShowError(LOG_FILE)
End If
On Error GoTo 0
@fzumstein
Copy link
Member Author

Simply make it like on Windows and delete the log file at the end. This is the main reason for causing the weird behavior: After running it with an error from Excel, you go to Python and run it - then it picks up the log file and shows it in Excel again. I orginally didn't delete it as on Mac Excel you can't do Cmd-C to copy the error message.

@fzumstein fzumstein added this to the v0.2.3 milestone Sep 26, 2014
@fzumstein fzumstein changed the title Mac: Only call CleanUp macro when called from Excel Mac: CleanUp macro causes troubles when run from Python Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant