Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default show cell value as cell comment, by mycomment() ro any

Some help please

by cell value (customer code), i show thro' vlookup() are related details
but instead of showing as cell value, can the mobile number (which is cell
value in the master) be shown as comment in this sheet, while cursor is
placed on customer contact persone name
is this possible !! advance thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default show cell value as cell comment, by mycomment() ro any

To add cell value to a Comment..............

Sub Comment_Add()
Dim cmt As Comment
Dim r As Range
For Each r In Range("D3:D100") 'adjust to suit
Set cmt = r.Comment
If cmt Is Nothing Then
Set cmt = r.AddComment
cmt.Text Text:=r.Text
End If
Next r
End Sub


Gord Dibben MS Excel MVP

On Wed, 22 Apr 2009 13:42:01 -0700, Eddy Stan
wrote:

Some help please

by cell value (customer code), i show thro' vlookup() are related details
but instead of showing as cell value, can the mobile number (which is cell
value in the master) be shown as comment in this sheet, while cursor is
placed on customer contact persone name
is this possible !! advance thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default show cell value as cell comment, by mycomment() ro any

hi
it is not working, may be i did not explain correctly
i have code at range a5:a10; and
i show at range b5:b10 names (using vlookup) for each code in a5:a10
the master list has has mobile number next to name, which i like to show as
comment in the name range b5:b10
master list is in the next sheet (mas!a5:h250, a is code, b is name & c is
mobile no..)
is it possible to show mobile number in b5:b10, as comments
where i have vlookup formula to show names
thank you



"Gord Dibben" wrote:

To add cell value to a Comment..............

Sub Comment_Add()
Dim cmt As Comment
Dim r As Range
For Each r In Range("D3:D100") 'adjust to suit
Set cmt = r.Comment
If cmt Is Nothing Then
Set cmt = r.AddComment
cmt.Text Text:=r.Text
End If
Next r
End Sub


Gord Dibben MS Excel MVP

On Wed, 22 Apr 2009 13:42:01 -0700, Eddy Stan
wrote:

Some help please

by cell value (customer code), i show thro' vlookup() are related details
but instead of showing as cell value, can the mobile number (which is cell
value in the master) be shown as comment in this sheet, while cursor is
placed on customer contact persone name
is this possible !! advance thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 151
Default show cell value as cell comment, by mycomment() ro any

Hi all,
I dont know, if somebody read my query.
We get any element of an array by vlookup() or index formulas
but if there is any function which can get not only the element but the
comments in that element, it would have been superb. Am i too greedy !!

No problem. thank anyway to Mr GD.





"Eddy Stan" wrote:

hi
it is not working, may be i did not explain correctly
i have code at range a5:a10; and
i show at range b5:b10 names (using vlookup) for each code in a5:a10
the master list has has mobile number next to name, which i like to show as
comment in the name range b5:b10
master list is in the next sheet (mas!a5:h250, a is code, b is name & c is
mobile no..)
is it possible to show mobile number in b5:b10, as comments
where i have vlookup formula to show names
thank you



"Gord Dibben" wrote:

To add cell value to a Comment..............

Sub Comment_Add()
Dim cmt As Comment
Dim r As Range
For Each r In Range("D3:D100") 'adjust to suit
Set cmt = r.Comment
If cmt Is Nothing Then
Set cmt = r.AddComment
cmt.Text Text:=r.Text
End If
Next r
End Sub


Gord Dibben MS Excel MVP

On Wed, 22 Apr 2009 13:42:01 -0700, Eddy Stan
wrote:

Some help please

by cell value (customer code), i show thro' vlookup() are related details
but instead of showing as cell value, can the mobile number (which is cell
value in the master) be shown as comment in this sheet, while cursor is
placed on customer contact persone name
is this possible !! advance thanks



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
Show Excel comment on mouseover but not the comment indicator [email protected] Excel Programming 6 June 30th 15 02:30 AM
How can I show/hide the cell comment blocks ? raymond New Users to Excel 1 June 19th 09 05:47 PM
show or Hide cell comment when mouse hovers in Excel? Abi Excel Worksheet Functions 1 May 28th 09 05:47 PM
How to show original comment in cell when using Vlookup in Excel? Lucy Excel Worksheet Functions 3 January 17th 08 05:34 AM
Show Comment when in the cell Manju Excel Worksheet Functions 5 February 5th 07 02:16 PM


All times are GMT +1. The time now is 05:55 AM.

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"