integritycare
Technical User
Hi,
I have created an excel workbook with just a few command buttons
On my computer which is win 8 and using Office 2010 I have no issues with the command buttons working.
However when I take a copy of the workbook to the office which is using the same version of office, but on Windows 7 the command buttons are ok.
But when I save a copy on tge office computer take it home and open it up on my computer the command buttons do not work.
On investigation I have found that the command button name in the properties has changed from command button1 to command button6. This has happened on all the spreadsheets in this workbook.
What is the issues. Just can't figure this one out.
The code just on one of the command buttons is this, which initially worked on my computer:
This is what happens with this problem
A real pain..
Many Thanks
KP
I have created an excel workbook with just a few command buttons
On my computer which is win 8 and using Office 2010 I have no issues with the command buttons working.
However when I take a copy of the workbook to the office which is using the same version of office, but on Windows 7 the command buttons are ok.
But when I save a copy on tge office computer take it home and open it up on my computer the command buttons do not work.
On investigation I have found that the command button name in the properties has changed from command button1 to command button6. This has happened on all the spreadsheets in this workbook.
What is the issues. Just can't figure this one out.
The code just on one of the command buttons is this, which initially worked on my computer:
Code:
Private Sub CommandButton1_Click()
Dim dFileSaveAs As Boolean
bFileSaveAs = Application.Dialogs(xlDialogSaveAs).Show
If Not bFileSaveAs Then MsgBox "User Cancelled Saving this Book", vbCritical
End Sub
This is what happens with this problem
Code:
Private Sub CommandButton6_Click()
End Sub
A real pain..
Many Thanks
KP