Insert Comment through pop up form

Addora

New Member
Joined
Jan 4, 2014
Messages
11
[FONT=&quot]hello,

please, I ask for help in how can I an empty cell which I will fill it with date value and have a table from two columns [Date] & [Comment].

I need to create two buttons:

1st: Insert comment >> I will fill the empty cell with date value >> click the button >> a text field form will popped up >> write a comment >> then click Submit to list that comment at the [Comment] column beside the looked-up the date value

2nd: Retrieve Comment: I will fill the empty cell with date value >> click the button >> a text field form will pop up with its beside comment[/FONT]

[FONT=&quot]
the Workbook
[/FONT]

[FONT=&quot]gratefully,[/FONT]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

You can use the following example and adapt it to your needs...
Code:
[COLOR=#333333]Sub myComment()[/COLOR]
[COLOR=#333333]Dim rng As Range[/COLOR]

[COLOR=#333333]Set rng = Sheet1.ActiveCell[/COLOR]
[COLOR=#333333]rng.ClearComments[/COLOR]
[COLOR=#333333]'Direct from your written text[/COLOR]
[COLOR=#333333]rng.AddComment "This is a test with my specific comment !"[/COLOR]

[COLOR=#333333]End Sub[/COLOR]

HTH
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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