Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MFS MFS is offline
external usenet poster
 
Posts: 36
Default Text from a comment box into a cell

Hi, is there any solution to extract the text written in a comment box to a
specific cell

I tried the following but this message #name? appeared

Select the cell which has the comment
Go to InsertName (Define Name in formulas tap) a window will appear
Now insert the following formula in the "Refers to" box -
get.object(12,"comment 1") and give it a name, say trial
In any cell (say A5) where you want to insert the contents of the comments
box, say =trial.

Please check where is my mistake, note that I have Office 2007.

--
MFS22
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Text from a comment box into a cell

You can try the below UDF. To try this launch VBE using Alt+F11. Insert
module and paste the below code. Save and close VBE. Get back to workbook.

=GetComment(A1)

Function GetComment(varRange As Range) As String
For Each c In varRange
If Not c.Comment Is Nothing Then
GetComment = GetComment & c.Comment.Text & ","
End If
Next
End Function

If this post helps click Yes
---------------
Jacob Skaria


"MFS" wrote:

Hi, is there any solution to extract the text written in a comment box to a
specific cell

I tried the following but this message #name? appeared

Select the cell which has the comment
Go to InsertName (Define Name in formulas tap) a window will appear
Now insert the following formula in the "Refers to" box -
get.object(12,"comment 1") and give it a name, say trial
In any cell (say A5) where you want to insert the contents of the comments
box, say =trial.

Please check where is my mistake, note that I have Office 2007.

--
MFS22

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Text from a comment box into a cell

Hi,

I don't see any errors that works fine. The only thing I can maybe see is
you have to enter

=GET.OBJECT(12,"comment 1")

in the refers to box

Mike

"MFS" wrote:

Hi, is there any solution to extract the text written in a comment box to a
specific cell

I tried the following but this message #name? appeared

Select the cell which has the comment
Go to InsertName (Define Name in formulas tap) a window will appear
Now insert the following formula in the "Refers to" box -
get.object(12,"comment 1") and give it a name, say trial
In any cell (say A5) where you want to insert the contents of the comments
box, say =trial.

Please check where is my mistake, note that I have Office 2007.

--
MFS22

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Text from a comment box into a cell

On May 7, 6:43*am, Mike H wrote:
Hi,

I don't see any errors that works fine. The only thing I can maybe see is
you have to enter

=GET.OBJECT(12,"comment1")

in the refers to box

Mike



"MFS" wrote:
Hi, is there any solution to extract the text written in acommentbox to a
specific cell


I tried the following but this message #name? appeared


Select the cell which has thecomment
Go to InsertName (Define Name in formulas tap) a window will appear
Now insert the following formula in the "Refers to" box -
get.object(12,"comment1") and give it a name, say trial
In any cell (say A5) where you want to insert the contents of the comments
box, say =trial.


Please check where is my mistake, note that I have Office 2007.


--
MFS22- Hide quoted text -


- Show quoted text -


I like both solutions, but unfortunately don't see a way using either
technique to automatically change the destination cell contents if the
target cell's comment changes.
Is there one?

Regards
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
Text from a comment box into a cell MFS Excel Worksheet Functions 2 May 7th 09 03:41 AM
Move Comment into cell as Text Frances Excel Discussion (Misc queries) 2 November 5th 08 08:22 PM
How can I link the text in a cell into a comment box? Bijoy V J Excel Discussion (Misc queries) 8 July 24th 08 10:22 PM
Create Cell Comment based on text in a cell on another worksheet Dave Fellman Excel Discussion (Misc queries) 2 March 15th 07 09:49 AM
How can I translate a comment to text in a cell? DFIChris Excel Discussion (Misc queries) 2 May 16th 05 08:19 PM


All times are GMT +1. The time now is 12:38 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"