kevEur
Automotive
- Sep 27, 2024
- 3
Hello everyone,
I'm relatively new to macro programming and this forum helped me tremendously. Thanks a lot to all of you!
Now I'm at a point where I'm stuck, and I was wondering if anyone had an advice.
I have an excel macro. Purpose: when you click a button, a capture inside a Catia V5 annotation set is displayed and CaptureToFile is creating an image. This image is then added to another excel file.
The code is written in VBA and works fine: the capture is displayed correctly and the image is saved in the correct format. However, when I try to click on the image, it seems corrupted. Also checking the excel file where the image was copied into, the image cannot be displayed correctly.
When I use the same code as a Catia Macro in VBscripting, slightly adjusted ofc, the image is correctly created and can be displayed without concerns.
Before sharing any code, I was wondering if anybody had the same concern with CaptureToFile in VBA. If yes: was anyone able to fix it?
Thanks a lot in advance (p.s. if need be I can also share the code; but I suspect the concern lies in VBA vs. VBacpriting).
Cheers,
K.
I'm relatively new to macro programming and this forum helped me tremendously. Thanks a lot to all of you!
Now I'm at a point where I'm stuck, and I was wondering if anyone had an advice.
I have an excel macro. Purpose: when you click a button, a capture inside a Catia V5 annotation set is displayed and CaptureToFile is creating an image. This image is then added to another excel file.
The code is written in VBA and works fine: the capture is displayed correctly and the image is saved in the correct format. However, when I try to click on the image, it seems corrupted. Also checking the excel file where the image was copied into, the image cannot be displayed correctly.
When I use the same code as a Catia Macro in VBscripting, slightly adjusted ofc, the image is correctly created and can be displayed without concerns.
Before sharing any code, I was wondering if anybody had the same concern with CaptureToFile in VBA. If yes: was anyone able to fix it?
Thanks a lot in advance (p.s. if need be I can also share the code; but I suspect the concern lies in VBA vs. VBacpriting).
Cheers,
K.