Then you must create routine in normal module like:
then you may use:![]()
Public Sub ShowDataSheetForm() frmUsrDataSheet.Show End Sub
![]()
Application.Run "UserformExample.xlsm!ShowDataSheetForm"
Then you must create routine in normal module like:
then you may use:![]()
Public Sub ShowDataSheetForm() frmUsrDataSheet.Show End Sub
![]()
Application.Run "UserformExample.xlsm!ShowDataSheetForm"
- Please remember to mark threads Solved with Thread Tools link at top of page.
- Please use code tags when posting code: [code]Place your code here[/code]
- Please read Forum Rules
Ok I put the code into new module in thworkbook where the fomr exist, then I put the application.run code into the command button in the workbook where the button exist.
Now I am getting the following error run time error 1004 Method "Run" of object"_Application" failed.
Ok I just noticed in the error it has the following path ..c:\users\ddempsey\Documents\userformexample.xlsm.. This is not the correct path, why is it looking here for the form.
The form is in the following path. C:\Users\ddempsey\Desktop\notes
should i move it to the path noted in the error?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks