Adding a comment to a button, with a macro assigned, in excel - excel

I was wondering how you add a comment to a button in excel. So when I hold the coursor over the button, the comment will appear.
Maybe you need to do it in VBA?
Please give me the line of code needed or any other help methods and I would really appreciate it.

Once you add the button, you can right click and get properties (while in Design Mode). Choose View Code. VBA will come up, and you will see the OnClick event there.
Just choose the down arrow on the right side of the screen, and you will see all of the events you can use with this button. One of them is MouseMove. Unfortunately, Excel is not like Access in that you can't set a MouseMove event on the detail of your form to take away the comment after they see it. But... depending on your needs, you could pop-up a message box or something like that.
Hope that helps.

Related

How to hide text in certain cells from a script?

Windows 10, Google Sheets, LVL: Rookie.
So I have a sheet, that is kinda like a scoreboard, the main purpose of it is to do scoreboard things, but that's irrelevant. Basically, for new people that use the sheet, I have green sentences near cells to show them what goes there, kinda like tutorials.
But, for people that have used the sheet for a while, they are going to get tired of all this extra space used up by green sentences that don't actually teach them anything cause they already know it.
SO I wanted to create a button from a UI box, that disables tutorials (Just hiding/deleting these green sentences), and whenever they wanted to see the tutorials "sentences" again, they could use another UI Button to enable them, which unhides/adds the text back in the cells.
I already have the UI Box setup...
The only thing I don't know how to do or what to code, is hiding/deleting these sentences, and being able to unhide/paste the sentences.
Now, if this can be done in an easy formula, please let me know, but otherwise, please help me write out a script for this. I will credit you if you wish.
You have a complicated spreadsheet that included about 25 text "hints" to user. You want experienced users to have the ability to "hide" the hints if they wish.
You could do this with a checkbox.
Untick (the default): the comments appear.
Tick the box: the comments are hidden
Create a checkbox (say, it is in Cell G1),
Edit all your hints along these lines.
=if($G$1=TRUE,"","Team name goes here --->")
Explanation
$G$1=TRUE`: this means that the check box has been ticked
if TRUE, then display nothing: ""
if not TRUE (the checkbox is NOT ticked), then display the hint. Such as "Team name goes here --->"

How do I allow user to select, but not edit, text in an excel userform control whose width is smaller than the text?

Context
I want the user to review some selections they made earlier. So I display some text describing each selection on a separate control in a userform. Some of the text on the controls is long, extending beyond the width of the control. This is fine; I just want the user to be able to see all of the text without being able to edit it. To do this, I use textboxes that are "Locked" (i.e. not editable) but "Enabled" (i.e. selectable). This way, they can just click and either mouse-drag or arrow-key over to scroll through all the text.
Problem
The (small, aesthetic) problem is that when the user clicks in one of the textboxes, they get a blinking cursor, which is misleading as that is normally associated with an editable textbox.
Possible solutions
Ideally, there would be some way of removing the blinking cursor, while still allowing selection but not edition. However, I'm open to other alternatives that don't have to do with changing the width, or having a scrollbar (the textbox is too short to fit a scrollbar). The best alternative I have so far is changing the background color to a gray to make it slightly more clear that it's not editable.
P.S. I'm very familiar with VBA, so if that's part of the solution, I'm cool with that.
Thanks all!
I had a similar issue, and solved it by using these instructions to create a hidden textbox that the cursor automatically appeared in (invisible to the user).

How to add Listpicker to textbox in LiveCode

I want to add a list picker in Live code.When a user click on the Textbox the list picker should open with list of items.How can do that?
Be aware that your text field must be locked in order to send a "mouseUp" message, if that is how you want to show the combo box that Monte suggested. There are other ways around this, if you still want to be able to type into that field. Write back with your exact needs.
The combo box is useful because you can type right into it. If you only want options that will load data into an existing field, a popup or pulldown might be something to look into.
On the left side of the tool palette about the middle is a style of button called a combo box. I think that's what you want.

How to create an "Add Attachement" column in sharepoint 2010?

Googled and looked here for a while with no answer found so far.
I am currently trying to have a column work similar to the edit button. With the edit button you click the icon and you are redirected to the edit page. I want something the users can click to go straight to the add attachment section. It does not need to be a button, even though it would look nice. We also have designer so that is an option as well.
Any suggestions or link on how I can try to make this work? Any help is appreciated.
Could you not Create another ECB item just like the edit button with the name add attachment
Pass the ID of the item via query string.
Pick this up in c# and work your magic to add an attachment?
This is how to create an ECB menu item
http://www.learningsharepoint.com/2012/05/22/add-custom-editcontrolblock-ecb-menu-item-to-open-a-custom-page-in-sharepoint/
Hope this helps
Cheers
Truez

What does EMBED function mean in Excel Controls?

I am adding a button in an existing Excel file. I noticed that the existing buttons has the EMBED formula specified to it. What does the function mean?
=EMBED("Forms.CommandButton.1","")
Honestly there really is not much documentation available on this "function". It is one of those things which are exposed unnecessarily when it really shouldn't have been. We are not supposed to enter this manually.
When you select a CommandButton and place it in Excel, you will see
=EMBED("Forms.CommandButton.1","")
in the Formula Bar. This text is necessary and should not be deleted. It is Excel's way of telling itself that an object has been inserted.

Resources