*Function GetComment(c As Range)
GetComment = c.Comment.Text
End Function

*
On Wed, Jun 29, 2011 at 11:52 AM, Vasant <vasant...@gmail.com> wrote:

> Try this.
>
> Sub Test()
> Dim Rng as range
> Set Rng = ActiveSheet.Range("A1")
> Debug.Print Rng.Comment.Text
> End sub
>
> if you want to use it as a UDF
>
> Function GetComment(Rng as range)
> GetComment= Rng.Comment.Text
> End sub
>
>
> On Wed, Jun 29, 2011 at 9:31 AM, Heather <galo...@comcast.net> wrote:
>  > I would like to extract comments and paste it next to the cell.
> >
> > For example:
> > The comment in cell A1 would be pasted in B1
> > The comment in cell A2 would be pasted in B2
> > until the bottom row of the data.
> >
> > If this possible or does the fact that comments are objects prohibit
> > this?
> >
> > Any help is appreciated - I am trying to make sense of data where
> > comments were overused!
> >
> > Thanks!
> >
> > Heather
> >
> > --
> >
> ----------------------------------------------------------------------------------
> > Some important links for excel users:
> > 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> > 3. Excel tutorials at http://www.excel-macros.blogspot.com
> > 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
> >
> > To post to this group, send email to excel-macros@googlegroups.com
> >
> > <><><><><><><><><><><><><><><><><><><><><><>
> > Like our page on facebook , Just follow below link
> > http://www.facebook.com/discussexcel
> >
>
>
>
> --
> Regards
>
> Vasant
>
> skype Id: vasantjob
> vasant...@gmail.com
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to