Command buttons changing to pictures?

wackywoo105

New Member
Joined
May 13, 2014
Messages
23
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet we use for appointments. It has worked fine for years. Recently it sometimes fails to open. On trying again Excel offers to open it in safe mode and then conducts repairs before allowing it to save. It has a few command buttons and depending on the user one of the buttons can be hidden or displayed.

It appears these button are being converted to pictures, so of course the code crashes as the referenced button is no longer there to hide or show.

Can anyone help with why this has recently started happening and how to fix it?

Below is the error log and some images:
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error149520_01.xml</logFileName>
<summary>Errors were detected in file 'C:\Users\Rev\Google Drive\APPOINTMENTS.xlsm'</summary>
<removedFeatures>
<removedFeature>Removed Feature: Object from /xl/workbook.xml part (Workbook)</removedFeature>
</removedFeatures>
</recoveryLog>

Screenshot 2024-01-18 12.59.09.png


Screenshot 2024-01-18 12.56.13.png
 
Last edited:

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
What version of excel are you using?

Can you change the controls to a shape instead of command buttons? ie. Insert/Shape/Sqare and then assign a macro to the shape.

Form controls and/or activeX controls on sheets is risky in my experience.
 
Upvote 0
Currently on Microsoft® Excel® for Microsoft 365 MSO (Version 2312 Build 16.0.17126.20132) 64-bit

thanks. I will look into what you suggest. Is it possible to assign the code to the button pictures?
 
Upvote 0
Yep, you can assign a macro to the shape. Right click on the shape and you will see the option.
 
Upvote 0

Forum statistics

Threads
1,224,743
Messages
6,180,686
Members
452,994
Latest member
Janick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top