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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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