Dim a As IPictureDisp
Dim b As IPictureDisp Private Sub CommandButton1_Click() CommandButton1.Picture = IIf(CommandButton1.Picture Is a,b,a) End Sub Private Sub UserForm_Initialize() Set a = LoadPicture("Object Type hide.JPG") Set b = LoadPicture("Object Type show.JPG") CommandButton1.Picture = a End Sub 原文链接:https://www.f2er.com/vb/259332.html