question

WilL-4845 avatar image
0 Votes"
WilL-4845 asked 70314853 answered

Cannot "Start" my first Solidworks macro (Visual Studio 2015)

Hi, I am new to Visual Studio! I am trying to run a simple macro using Visual Studio 2015, and once I clicked the "Start" button.

I got this error message:

"You cannot debug or run this project, because the required version of the Microsoft Office application is not installed."
"Unable to start debugging. Operation not supported. Unknown error: 0x80070057."

Any idea why am I getting this error message?


[1]: /answers/storage/attachments/145133-screenshot-2021-10-29-142413.jpg

[2]: /answers/storage/attachments/145070-screenshot-2021-10-29-142447.jpg

vs-generalvs-debuggingvs-setup
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @WilL-4845
What type of project are you running, could you provide steps to reproduce the problem?

0 Votes 0 ·

Hi @PengGe-MSFT

Thanks for getting back to me. I am running .vbproj. All I did to reproduce the problem is click "Start", and I am expecting a Windows pop-up showing "Hello World" but instead I get these error messages


[1]: /answers/storage/attachments/145824-screenshot-2021-11-02-093446.jpg

0 Votes 0 ·

Hi, @WilL-4845
Does your project only have this vb file?
I cannot reproduce the issue you encountered from the code you provided.
From the error message, you can try to set the path to the Office Application:

  1. Right click on your project and select properties in Solution Explorer.

  2. Go to the 'Debug' tab

  3. Click the 'Start External Program'

  4. Enter the path to the Office Application


0 Votes 0 ·
70314853 avatar image
0 Votes"
70314853 answered

Hi, please try uninstalling this app and reinstalling it. You just need to delete it in the control panel and check the box in the deological window to remove everything related to this program. And in addition to all this, you need to clean the disk from garbage and remnants of outdated programs. It is better to clean the disk in the control panel, right-click on the disk file, a small window will open at the bottom, click on the properties of the disk and on the main page you will see clean up the disk, click on clear, when the cleaning program opens, click on clear system files, then another window will open there, click on additional on the top of the window and at the bottom, click to clear. Further, on the recommendation of the program, you will figure it out for yourself.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

70314853 avatar image
0 Votes"
70314853 answered

Hi, please try uninstalling this app and reinstalling it. You just need to delete it in the control panel and check the box in the deological window to remove everything related to this program. And in addition to all this, you need to clean the disk from garbage and remnants of outdated programs. It is better to clean the disk in the control panel, right-click on the disk file, a small window will open at the bottom, click on the properties of the disk and on the main page you will see clean up the disk, click on clear, when the cleaning program opens, click on clear system files, then another window will open there, click on additional on the top of the window and at the bottom, click to clear. Further, on the recommendation of the program, you will figure it out for yourself.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.