Is a pop up, editable text box possible?

rriiser

New Member
Joined
May 18, 2011
Messages
2
Hi, I wonder if you may be able to help me -

I would like a pop up text box (similar to data > data validation > input message) to appear when you click on a cell, but then I want the user to be able to edit it by clicking on the box (rather than going into data validation again...)

So not like a comment as you have to right click to view/edit, I want it to be quicker...

I am very new to VBA, but don't mind having a go (the best I have got to so far is my own warning box!)

Hope you can help,

Many thanks.

 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi,

Try playing about with an input box:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Dim iBox As String
    If Target.Count > 1 Then Exit Sub
    If Not Intersect(Target, Range("A1")) Is Nothing Then
        iBox = InputBox("Please enter something:", "InputBox o' Win")
        MsgBox iBox
    End If
End Sub
^^ When you select cell A1 it will show an input box, which you can enter things into.

Is this what you were referring to? Or was it more like a userform?
 
Upvote 0
With a comment if you double-click the cell you go into Edit mode on the comment. Is that any help?
 
Upvote 0
Thanks James,
That is very useful! When the pop up box appears, and you fill something in (this is great) and press enter, how then do you keep the inforrmation that was entered so that you can see it next time you click on it - was hoping that when you click on A1 again, it would show what was entered in the box.

Many thanks!
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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