Welcome to JustAnswer. My name is XXXXX XXXXX I will be assisting you today.
Are you referring to the "Comments" box in a cell?
If the "Comments" box works for you, how do you want to activate the box? You can enter data into the cell, double-click on it, or there are a few other options. Let me know.
Nope, my users don't know how to use comments. This is for a sales tracking sheet. I have attached the worksheet I am working off of. My users will enter up to 50 rows of data and the last 3 columns will be text for comments, updates and followup. If I just format with auto fit and wrap text I could have one cell that is 3 inches in height. That does not make a pleasant or tidy spreadsheet. So I want to have the user click on the cell, have a pop up text box where they can enter what they want and then when they go to the next cell it disappers but I can go back and view the text if needed.
I can't attach the sheet - here is an image of what I mean
Columns K, L and M need to have text entered by the user. I don't want to limit the amount. As you can see I entered a comment but but my users will not know how to view, enter or edit. I want them to be able to click on a cell ie K2, L2 or M2 and enter text in a pop up text box that will go away when they move to another cell. Make sense?
It does. But there's no way to attach code to a cell itself. We can act on an action (like entering something into one of those fields, or double clicking on one of those cells). I can give you the code you need to automatically pop up the comment box when one of those actions is performed. And it will automatically be hidden when they leave the cell automatically. Would that work?
I think that would work.
So, user would doubleclick the cell, enter text, hit enter and the box would go away but would still be accessible if someone goes back to that cell.
then that would work
so what do I need to do on my end
I am just trying to have a streamlined worksheet without huge cells with text
I'll write up the code first, then I will show you how to enter it. First though, do you know how to enable "Developer" options in 2007? I'm using 2010 so I can't give you the exact method right now. But if you can't find it I will look it up for you.
yup I do
I have been playing with userforms etc today trying to figure out a solution but I am a newbie
No problem at all. Give me a few to write the code for you. I'll write again as soon as it's done.
step by step is fabulous
you rock thanks
No problem at all. Talk to you soon.
Should the comment be editable after the initial entry has been made?
Actually, should this be a comment after all? Or just a "free flow" way of entering data into the cell?
Just free flow? The users are sales folks so they just need a way to keep track where the super can check in and see where they are in the process
Ok, grab this file: http://wikisend.com/download/403024/AddComments.txt
Open Excel and hit Alt+F11
vb pops up
Do you have a worksheet already open?
Excellent. Copy and past the text into the "Worksheet" object. Then save it as a macro-enabled document.
I am under developer
Go into VBA. Double-click the "ThisWorkBook" object. Then paste the text I sent into it.
I don't think I did it righ
Ok, see the code?
ok went to VBA clicked on This Workseet in Nav
pasted code in
Excellent. Now do file-save and select a macro-enabled workbook. I think it's the second option.
Workbook and then Sheet before Double Click
Tell me when it's saved.
Ok, close VBA. he go double-click on K2
he = then
My fingers are moving too fast. ;)
I double click and nothing so I must have done something wrong
No problem. One sec. I am going to upload the workbook I used as a test. That way you can see what needs to be done.
I think I got it
ok so I get the enter comment box
I am playing with text how do I get the comment box to go away?
Move your mouse away from K2. It should go away automatically.
I had to change the setting to show/hide comment
ahhh ... ok
can I duplicate the coding for more rows?
I think I had done that part manually. Sorry.
np so I can duplicate for more rows?
Yep. Do you see the test condition at the 3rd or 4th row? Just add more conditions to match there.
so and no way to change comment command to a text box command?
Nope. The inputbox is the best we can do. I tried playing with the size a bit, but the best I could do was change the popup position.
ok, then this is GREAT
Excellent! I'm glad you like it. :) Let me know if you need anything else. And keep my name handy if you ever need help again. I'm more than happy. :)
This is great
how do I pay you
All you do is click the rating below. That will close the question and send payment. I appreciate it. Have a great night!
I can't figure out how to duplicate the fucntion going down the column can I not use this type?
"$K$2" use "$K$2:$K$100"
I can get it to work if I do another string of $K$3 but that would take forever there has to be a shorter way.
Change:If (Target.Address = "$K$2") Or (Target.Address = "$L$2") Or (Target.Address = "$M$2") Thento read:If (Target.Column = 11) Or (Target.Column = 12) Or (Target.Column = 13) ThenThat will affect all rows in K, L, M columns.