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

Excel macro did not run #44

Open
dlparkhurst opened this issue Jun 22, 2024 · 1 comment
Open

Excel macro did not run #44

dlparkhurst opened this issue Jun 22, 2024 · 1 comment

Comments

@dlparkhurst
Copy link
Contributor

I installed 32- and 64-bit IPhreeqcCOMs and restarted my computer.

I compiled and installed iphreeqc and opened the excel file:
_build\INSTALL\examples\com\excel\runphreeqc.xls
went to view->macros, run runphreeqc gave the error message" Runtime error '424', Object required"

Did I miss a step?

@scharlton2
Copy link
Contributor

Note that Powershell examples have been added to the IPhreeqcCOM documentation.

Opening a powershell terminal is probably the easiest way to debug IPhreeqcCOM errors.

In a powershell window try:

$iphreeqc = New-Object -ComObject IPhreeqcCOM.Object

The absence of output typically indicates success.

As for the problem you're having I suspect that the .NET Framework 3.5 needs to be enabled. For instructions please see the following:

https://gist.github.com/scharlton2/b8dd1ccd2820c62859c8e7ac5d1ccc2e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants