VBA for userform/Comment box type function

harryco79

Board Regular
Joined
Dec 15, 2004
Messages
166
Hello everyone. Seeking help on a function i want to create in a worksheet that mimics the "comment box" function but with a twist.

I would like the user to be able to click a cell (A1) and then a userform with a textbox will appear to the right of it.
The user then inputs a comment , hits save and the form will disappear.

However i would like the text input and saved to be linked to a particular cell in another worksheet (worksheet B) within the workbook.

I Will be using this function for mutilple cells in the workbook. Can anyone helpp with this.

I am using Excel 2007 and inexperienced with VBA.

Thanks so much for all the help in advance. Love the msg board!!!
 
Tried it as instructed. When i double click A1 I get the below. Not sure what I am doing wrong

mrexcel_demoPage2.jpg
 
Upvote 0

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I am rethinking this whole approach. I will have 10s (perhaps up to 100) of such cells to be double-clicked and not so sure how practical that will be on the VBA code side.

Will it be possible to just double click a cell (A1) and a formatted comment box appears ready for the user to input text. Then when done they click out of the out of the comment box and it disappears. The text in the comment is saved to another worksheet in cell B2.

Thanks
 
Last edited:
Upvote 0
Thats why I choose a UDF approach.

Your 10 cells won't require any change to the code. If you had 100 cells, it wouldn't require any code change.

I've PMed you about my e-mailing a workbook to you, to show how this is all put together.
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,831
Members
449,471
Latest member
lachbee

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