Hi all,
I have a workbook that when sent from an apple computer back to me on desktop version lost all functionality of the command button. My aim is to try restore the original functionality of this button.
All the code is still in the original sheet code but the button no longer links to it as I think it became a form button instead of command.
I have insert a new command button and it is named the same as in the sheets source code but it still does not click.
When I look at the button in the formula cell it displays =EMBED("Forms.CommandButton.1","")
Is there a way I need to link this button back to the source code shown below. Is it in the formula above or do I need to change the command buttons properties somewhere?
Private Sub CommandButton3_Click() ' Log out
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim sh As Worksheet
For Each sh In Sheets
If sh.Name <> "Main" Then
sh.Visible = xlSheetVeryHidden
End If
Next sh
Sheet1.Range("b4") = "Select a Name"
Sheet1.Range("b6") = ClearContents
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Many thanks
I have a workbook that when sent from an apple computer back to me on desktop version lost all functionality of the command button. My aim is to try restore the original functionality of this button.
All the code is still in the original sheet code but the button no longer links to it as I think it became a form button instead of command.
I have insert a new command button and it is named the same as in the sheets source code but it still does not click.
When I look at the button in the formula cell it displays =EMBED("Forms.CommandButton.1","")
Is there a way I need to link this button back to the source code shown below. Is it in the formula above or do I need to change the command buttons properties somewhere?
Private Sub CommandButton3_Click() ' Log out
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim sh As Worksheet
For Each sh In Sheets
If sh.Name <> "Main" Then
sh.Visible = xlSheetVeryHidden
End If
Next sh
Sheet1.Range("b4") = "Select a Name"
Sheet1.Range("b6") = ClearContents
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Many thanks
Last edited: