searchlight
Board Regular
- Joined
- Dec 25, 2009
- Messages
- 112
I have a macro enabled workbook with a file name that starts with the word "data".
I input data to the workbook through the use of a user form. On the user form I have a command button that I click periodically to save my work. (I have the ability to hide the workbook and added the button for this reason)
There are several time I need to open an additional workbook or two to do research and if I click the save button on the user form and the "data" workbook is not active we get a run time error.
Right now I have just the standard macro instructions for the command button:
>Private Sub CommandButton3_Click()
>ActiveWorkbook.Save
>End Sub
Thank!!
I input data to the workbook through the use of a user form. On the user form I have a command button that I click periodically to save my work. (I have the ability to hide the workbook and added the button for this reason)
There are several time I need to open an additional workbook or two to do research and if I click the save button on the user form and the "data" workbook is not active we get a run time error.
Right now I have just the standard macro instructions for the command button:
>Private Sub CommandButton3_Click()
>ActiveWorkbook.Save
>End Sub
Thank!!