I have a vba line which responds to a command button being clicked, and then opens a j-walk enhanced dataform add-in, as below:
Private Sub CommandButton1_Click()
Sheets("INDATA").Select
Application.Run "dataform2.xla!ShowDataForm"
Sheets("CURRENT JOBS").Select
End Sub
Wht I want to do is disable the "enter" key while the j-walk form is active, due to the reason that the form closes if you hit enter, rather than button within the form itself, and then renable the enter key when the macro takes me back to the main page (in my case, named "CURRENT JOBS"
There are times when a user will go to the sheet named "INDATA" and needs to be able to use the enter key just as normal, so I dont want to disable it permanently, only while the j-walk form is active
Any help
Thanks
Private Sub CommandButton1_Click()
Sheets("INDATA").Select
Application.Run "dataform2.xla!ShowDataForm"
Sheets("CURRENT JOBS").Select
End Sub
Wht I want to do is disable the "enter" key while the j-walk form is active, due to the reason that the form closes if you hit enter, rather than button within the form itself, and then renable the enter key when the macro takes me back to the main page (in my case, named "CURRENT JOBS"
There are times when a user will go to the sheet named "INDATA" and needs to be able to use the enter key just as normal, so I dont want to disable it permanently, only while the j-walk form is active
Any help
Thanks