Double Click Cell > Opens Userform with selected cell as Label

chris186h

Board Regular
Joined
Mar 18, 2015
Messages
111
Hello All.
I have a piece of code i am using.
Code:
Private Sub worksheet_beforedoubleclick(ByVal target As Range, Cancel As Boolean)        If Not Intersect(target, Range("B5:B50")) Is Nothing Then
        
    Selection.copy
    Sheets("Masster").Select
       Sheets("Master).Range("A2").PasteSpecial xlPasteValues
      End If
End Sub
I would like to use the double click function to detect which cell i have selected and open a userform i have with the cells value as preferably a Label if not possible a text box.
To keep things simple i will use userform1 and label1 for examples.

I would like to keep the process of copying and pasting the value into the cell if possible, unless there is a simpler way without using copy/paste that anyone can suggest

Thankyou for any help you can give.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,226,730
Messages
6,192,699
Members
453,747
Latest member
tylerhyatt04

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