i have the following:
that works. now i want to call the dblclick from another macro, how can i do that?![]()
Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) UserForm2.Show TextBox1.Value = UserForm2.TextBox1.Value
i have the following:
that works. now i want to call the dblclick from another macro, how can i do that?![]()
Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) UserForm2.Show TextBox1.Value = UserForm2.TextBox1.Value
If your Macro is
Then Create a new Macro in a normal Macro Module.![]()
Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) UserForm2.Show TextBox1.Value = UserForm2.TextBox1.Value End Sub
Modify your Macro to:-![]()
Sub TDC() UserForm2.Show TextBox1.Value = UserForm2.TextBox1.Value End Sub
![]()
Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) TDC End Sub
So now you can call the Macro using: TDC
For example:
![]()
Sub Macro1() TDC End Sub
My General Rules if you want my help. Not aimed at any person in particular:
1. Please Make Requests not demands, none of us get paid here.
2. Check back on your post regularly. I will not return to a post after 4 days.
If it is not important to you then it definitely is not important to me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks