Forum

How to add comment ...
 
Notifications
Clear all

How to add comment on a date table

5 Posts
2 Users
0 Reactions
77 Views
(@julian)
Posts: 82
Estimable Member
Topic starter
 

It would be much more convenient to have a date table with holiday comment given from a holiday list beneath the date table. Please refer to the attached file and coach me to write the required script. Thanks a lot. 

 
Posted : 30/12/2017 11:03 pm
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Julian

I don't quite understand what you wanted.

Option 1 : Maybe a VLOOKUP with a helper column?

Option 2 : Or is it you actually wanted an Excel Comment (i.e Right-click cell and click Insert Comment)?

If option 2, do you want the author name to appear in the comment?

See example attached.

Sunny

 
Posted : 31/12/2017 12:13 am
(@julian)
Posts: 82
Estimable Member
Topic starter
 

Hi Sunny,

Not beyond my expectation I would "meet" you again here. As you mentioned about I was looking for a solution to option 2, no need for the author name displayed in the comment and no more blank comment added to those non-holidays. That's it. Thanks for your response so quickly.

Best regards,

JulianSmile

 
Posted : 31/12/2017 3:20 am
(@sunnykow)
Posts: 1417
Noble Member
 

Hi Julian

Attached is the file with the macro. Please follow the instructioins below:

1) You still need to add the helper column with VLOOKUP. It is easier than writing lengthy codes.

2) Select the cells to add the comment (A2:A367).

3) Run the macro.

4) If there is a text in the next column (column B in the example), it will be added as a comment in column A.

5) You can see an example of the outcome in Sheet1

Please note that I have not done much error checking so be careful and not to select the entire column A when running the macroLaugh

Hope this helps.

Sunny

 
Posted : 31/12/2017 11:27 am
(@julian)
Posts: 82
Estimable Member
Topic starter
 

Hi Sunny,

Thanks again for your great support. I use date table quite often. Now that with your VBA script it's easy to add the holiday comments on the corresponding cells. I do appreciate it. Happy new year!

Best regards,

JulianKiss

 
Posted : 31/12/2017 7:12 pm
Share: