Macro VBA icon does not work - Inventor 2022

Macro VBA icon does not work - Inventor 2022

PG_Tips
Contributor Contributor
1,648 Views
10 Replies
Message 1 of 11

Macro VBA icon does not work - Inventor 2022

PG_Tips
Contributor
Contributor

I have been going mad about this situation. I have followed multiple steps on how to change macro icon and nothing has worked. Can some one look at the attached pictures and tell me what I am doing wrong please???

 

Also I have tried to restart inventor and windows multiple times to see changes but this has not worked.

0 Likes
1,649 Views
10 Replies
Replies (10)
Message 2 of 11

g.georgiades
Advocate
Advocate

Not much to go on with those pictures honestly, so I will just try to hit all bases.

 

Please share a picture of the vba editor sidebar like I have below.

 

Please ensure your module/code are in a user project, not a document project.

 

Please verify that the module title that contains the function TEST is actually named TEST. (case sensitive?)

 

Please Verify: Your function needs to be in a module, not a class, not a form.

 

The icons are 16x16 pixels (small) and 32x32 pixels (large) correct?

 

You are aware that inventor must be restarted everytime any change is made to a vba icon.

 

 

ggeorgiades_0-1656673805047.png

 

0 Likes
Message 3 of 11

PG_Tips
Contributor
Contributor

princegurungH3CFF_0-1656675165114.png

picture of the vba editor sidebar as requested.

princegurungH3CFF_1-1656675354060.png

the sizes are as you have said.

i have restarted inventor and also the computer several times with no luck.

 

0 Likes
Message 4 of 11

g.georgiades
Advocate
Advocate

Hmm, well the only other thing I can think of it is to create a new/cloned vba project away from the one in the public documents and set that one as the default...(try C drive?) otherwise I am not seeing a difference from what I have and icons have always worked for me.

0 Likes
Message 5 of 11

PG_Tips
Contributor
Contributor

I did try that yesterday and it didn't work. I have tried it again and its the same result. will it be possible for you to send me your icon picture please. I will see if there is something wrong with that.

0 Likes
Message 6 of 11

g.georgiades
Advocate
Advocate

Here are some pictures that definitely work for me, small and large.

ggeorgiades_0-1656678126805.png

 

0 Likes
Message 7 of 11

PG_Tips
Contributor
Contributor

princegurungH3CFF_0-1656678641877.png

this works!!!!!!!!

my follow up question is how did you make this?

0 Likes
Message 8 of 11

g.georgiades
Advocate
Advocate

If your images are bad, that makes me think you did not save as bitmap properly?

 

Take any image pre-resized to 16x16 or 32x32, and export it to bitmap format. You have to ensure it converts the image format, not just changes the file extension. I personally use paint.net, but i believe windows paint will convert, or gimp, photoshop, online tools, etc.

ggeorgiades_0-1656679053170.png

 

0 Likes
Message 9 of 11

_dscholtes_
Advocate
Advocate

Did you save it as a 24-bit image?  (do not use 32-bit)

0 Likes
Message 10 of 11

0x3FA5
Advocate
Advocate

You have to ensure it converts the image format, not just changes the file extension.

YES!!

This is what was not working for me.

You can check the correct file format by opening the picture file in any text editor, here I just changed the extension:

0x3FA5_0-1686843580526.png

 

Message 11 of 11

SebastienOuellet
Participant
Participant
0 Likes