Call double click automatically in a form

gateub

New Member
Joined
Nov 23, 2021
Messages
1
Office Version
  1. 2021
Platform
  1. MacOS
Hi everyone,
Hope you good guys.
Since 1 week, I try everything in my possible and nothing works...
The goal ?
=> I have a form that lists differents values in my cells. In this list, I have a search bar and I have to double click on a item to have what I want after. When I double click, another form is opened with the details of item that I double clicked etc. In brief everything work actually when I did this manually.
I want to do this automatically ! The auto searching is working but after this I want to click on the first item of this list to access to the second form.

Example :
VBA Code:
Private Sub UserForm_Initialize()
/* code with the auto tag in the searching bar*/

Public Sub Lst_Taxo_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
/*Print the other form after I double clicked on the item I want in a the list.

To summarize, I want to call the Lst_Taxo_DblClik on the first item of the list (or the only one which is found ?) directly after in the autotag in the search bar in user form.

THANKS FOR YOUR HELP <3
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Sorry, your explanation is not very clear.
You have a userform that opens and lists a number of values taken from a worksheet.
The values are listed after you have used the searchbar (i don't think this is relevant)
Are these values shown in a listbox? or in individual text fields? How are they displayed? Can you post an image of your form?
Once the values are shown on the userform you want to carry out the Lst_Taxo_DblClick sub.

If the value yo want to double click on is held in a textbox1 for instance, you can use the TextBox1_Change() sub to check that there is a
valid entry and then call the Lst_Taxo_DblClick sub
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top