Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to get data from comment


Im really new to using excel and one thing I canīt figure out with the
help guide is how to get the data in a comment to a cell.

A1_comment - A2

The data (in my case text) to show in another cell.

Thanks in advance!


--
mooler
------------------------------------------------------------------------
mooler's Profile: http://www.excelforum.com/member.php...fo&userid=8670
View this thread: http://www.excelforum.com/showthread...hreadid=361273

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default How to get data from comment

You need to insert the following VBA custom function into a module in your
workbook.

Function CELLCOMMENT(ByVal range_input As Range)
CELLCOMMENT = range_input.Comment.Text
End Function

Then, in cell A2, you type:
=CELLCOMMENT(A1)

A2 will return the cell comment in cell A1.

Regards,
Edwin Tam

http://www.vonixx.com


"mooler" wrote:


Im really new to using excel and one thing I canÂīt figure out with the
help guide is how to get the data in a comment to a cell.

A1_comment - A2

The data (in my case text) to show in another cell.

Thanks in advance!


--
mooler
------------------------------------------------------------------------
mooler's Profile: http://www.excelforum.com/member.php...fo&userid=8670
View this thread: http://www.excelforum.com/showthread...hreadid=361273


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default How to get data from comment

{cell of interest}.Comment.Text gives you the comment.
{cell of interest}.Value lets you change the value of a cell.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...

Im really new to using excel and one thing I can=3Ft figure out with the
help guide is how to get the data in a comment to a cell.

A1_comment - A2

The data (in my case text) to show in another cell.

Thanks in advance!


--
mooler
------------------------------------------------------------------------
mooler's Profile:
http://www.excelforum.com/member.php...fo&userid=8670
View this thread: http://www.excelforum.com/showthread...hreadid=361273


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
Comment instead of Data Validation dee Excel Discussion (Misc queries) 2 May 9th 07 12:06 AM
ADD DATA TO A COMMENT BOX Kathy Excel Discussion (Misc queries) 1 December 12th 06 09:54 PM
a comment plugin & copy paste directly from excel to comment ? fr. RFM Excel Worksheet Functions 0 December 1st 04 11:29 PM
Need to Pull Data into a Comment BLB Excel Programming 2 June 7th 04 07:22 PM


All times are GMT +1. The time now is 07:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Đ2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"