I am programmatically creating ActiveX command buttons (actually ToggleButton) using the following code that is working well in my test file (attached). The intent is to fill the cell with the button so that it aligns with other information on the sheet.
However, when I take this code to my real project I find that the buttons do not align with the rows after a while. I've played around with the different .Placement constants but no difference. I've also looked at cell formatting and seems to have no effect. This occurs immediately after creating the buttons, there is no sheet formatting or activation of the buttons leading up to this behavior.![]()
Please Login or Register to view this content.
Anyone know what's going on? Do you know if the CommandButtons need some buffer space between instances? Can they overlap?
I have placed a screen shot of the problem in the attached file since images cannot be posted directly here. A picture speaks a thousand words...
Bookmarks