Double Click Cell/Select Cell to Populate Information

Disarmonious

Board Regular
Joined
Oct 31, 2016
Messages
139
Hello,

Is it possible for a cell to be double clicked or selected to bring up another screen that will display information for the user.

For example, let's say I want to have a cell T2 with the word "HELP". When selected, I would like another screen (it can be any size) to populate that will provide information or help on the document if the user is requesting help with the document.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Create a userform in your Editor window. You can name it, change the properties for the form (size and color etc) and put in text boxes, buttons, whatever you like.

Then in the VBA code for the sheet that the HELP cell is in you can do a Worksheet_SelectionChange or Worksheet_BeforeDoubleClick event.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("your help cell location")) is Nothing Then UserForm1.Show
End Sub


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("your help cell location")) is Nothing Then UserForm1.Show
End Sub

make sure you change your location name to something like A1 or G15.... the cell that has HELP in it
and make sure you are using the correct userform name when you call it to Show.
 
Upvote 0
Hi

Right click on your sheet tab, select view code and paste this within the page.

you can then write the word help into cell A1.
then when you double click A1 the messagebox will appear.

adjust accordingly

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Intersect(Target, [A1]) Is Nothing Then
       MsgBox ("WRITE TEST HERE, to help the user understand whatt you want")
    End If
End Sub

dave
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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