Userform Textbox value to cell as comment indicator

Maleko-1

New Member
Joined
Oct 20, 2010
Messages
27
Hello,
I am trying to transfer a TextBox value from a Userform to a cell on a spreadsheet but I would like the value to be viewable on the spreadsheet as a comment indicator (where you can hover the mouse over the cell to view the contents). Is this possible?
Any help with this would be much appreciated.
Thanks
Marc
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi there,

Try:

Code:
Private Sub CommandButton1_Click()
    Range("A2").Comment.Text Text:=TextBox1.Value
End Sub
 
Upvote 0
Thanks for the reply.
If I may ask.....
My userform has a TextBox1, TextBox2, and CommandButton. I need to send the value of TextBox1 to a cell in column H on Sheet1 and TextBox2 to the cell in column P in the same row on Sheet1 when enter is clicked. I would like the values in both columns to be viewed as comments on the spreadsheet. I also need the next entry from the userform to add as comments in the next row down and so on.
Any help with this would be very much appreciated.

Marc
 
Upvote 0
I am still trying to figure this out. It sounds like it would be easy but I am stumped.
Any kind soul willing to help me with this?

Thanks in advance

Marc
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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