Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell description/comment/tool tip?

Is it possible to set Excel to provide a tooltip or cell description or
comment for individual cells?

here's what we have:
A third-party file format is double-quote-delimited comma-separated
variables, such as:
"RX","1","Joe","Bloggs","23012006","123456","","", "34567"
"FIELD","1","6","Fixed","Sym","10","5","34567"
and so on.
So each line has a different number of elements.
We can import the file into Excel easy enough, and I've written a macro to
re-export the file with the quotes and commas and stuff.
But each element in each line means a different thing. For example, the
third element of a line that starts with "RX" is the first name of a person,
and the fourth element the surname. But the third element of a line that
starts with "FIELD" is the energy in use and the 4th element is the modality
used.

So what I want is to be able to import the file into Excel (easy enough with
Data Import), but have a macro or an add-in running so that when a user
clicks on a cell or hovers over it, a tooltip or description or comment or
something pops up telling the user what the cell means. So hovering over
the third cell of a line where the first cell is RX would put "First Name"
into such a pop-up thing.

Is this even remotely possible? In Powepoint there's the notes fields for
slides, is there a similar sort of mechanism for Excel?

Many thanks in advance,

--
Ian Cowley
Bishop's Stortford

www.iancowley.co.uk/contact


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 180
Default Cell description/comment/tool tip?

Check the 'Input Message' tab under Data Validation.

"Ian Cowley" wrote:

Is it possible to set Excel to provide a tooltip or cell description or
comment for individual cells?

here's what we have:
A third-party file format is double-quote-delimited comma-separated
variables, such as:
"RX","1","Joe","Bloggs","23012006","123456","","", "34567"
"FIELD","1","6","Fixed","Sym","10","5","34567"
and so on.
So each line has a different number of elements.
We can import the file into Excel easy enough, and I've written a macro to
re-export the file with the quotes and commas and stuff.
But each element in each line means a different thing. For example, the
third element of a line that starts with "RX" is the first name of a person,
and the fourth element the surname. But the third element of a line that
starts with "FIELD" is the energy in use and the 4th element is the modality
used.

So what I want is to be able to import the file into Excel (easy enough with
Data Import), but have a macro or an add-in running so that when a user
clicks on a cell or hovers over it, a tooltip or description or comment or
something pops up telling the user what the cell means. So hovering over
the third cell of a line where the first cell is RX would put "First Name"
into such a pop-up thing.

Is this even remotely possible? In Powepoint there's the notes fields for
slides, is there a similar sort of mechanism for Excel?

Many thanks in advance,

--
Ian Cowley
Bishop's Stortford

www.iancowley.co.uk/contact



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Cell description/comment/tool tip?

You could write a macro that checks for the different types of values that
you're categorizing by and insert the appropriate comment. The comment, when
inserted, is indicated by a red marker in the upper-right hand corner of the
cell. When the mouse pointer hovers over the marker the comment text is
displayed.
--
Kevin Backmann


"Ian Cowley" wrote:

Is it possible to set Excel to provide a tooltip or cell description or
comment for individual cells?

here's what we have:
A third-party file format is double-quote-delimited comma-separated
variables, such as:
"RX","1","Joe","Bloggs","23012006","123456","","", "34567"
"FIELD","1","6","Fixed","Sym","10","5","34567"
and so on.
So each line has a different number of elements.
We can import the file into Excel easy enough, and I've written a macro to
re-export the file with the quotes and commas and stuff.
But each element in each line means a different thing. For example, the
third element of a line that starts with "RX" is the first name of a person,
and the fourth element the surname. But the third element of a line that
starts with "FIELD" is the energy in use and the 4th element is the modality
used.

So what I want is to be able to import the file into Excel (easy enough with
Data Import), but have a macro or an add-in running so that when a user
clicks on a cell or hovers over it, a tooltip or description or comment or
something pops up telling the user what the cell means. So hovering over
the third cell of a line where the first cell is RX would put "First Name"
into such a pop-up thing.

Is this even remotely possible? In Powepoint there's the notes fields for
slides, is there a similar sort of mechanism for Excel?

Many thanks in advance,

--
Ian Cowley
Bishop's Stortford

www.iancowley.co.uk/contact



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,316
Default Cell description/comment/tool tip?

Using the sample row data an placing it in Column A row 1 of Sheet 1

the following code will place comments where necessary after evaluating the
first cells text. I've test this and it works okay.

Sub FlagCells()

Dim wb As Workbook
Dim ws As Worksheet
Dim lRow As Long
Dim lCol As Integer
Dim strRng1 As String
Dim strRng2 As String
Dim strVal As String
Dim strRX As String
Dim strField As String

Set wb = ActiveWorkbook
Set ws = wb.Worksheets("Sheet1")
strRX = "RX"
strField = "FIELD"

Range("A1").Select
strVal = ActiveCell.Value

Application.ScreenUpdating = False

Do While strVal < ""
'Get current row number, and set status bar display
lRow = ActiveCell.Row
Application.StatusBar = "Evaluating row " & Format$( _
CStr(lRow), "#,##0") & ", please wait..."
'Convert R1C1 cell value to A1 notation
strRng1 = Application.ConvertFormula("R" & lRow & "C3", _
xlR1C1, xlA1, xlRelative)
strRng2 = Application.ConvertFormula("R" & lRow & "C4", _
xlR1C1, xlA1, xlRelative)
'Evaluate the first cells value and comment accordingly
If strVal = strRX Then
With Worksheets(1).Range(strRng1).AddComment
.Visible = False
.text "First Name"
End With
With Worksheets(1).Range(strRng2).AddComment
.Visible = False
.text "Last Name"
End With

ElseIf strVal = strField Then
With Worksheets(1).Range(strRng1).AddComment
.Visible = False
.text "Energy Used"
End With
With Worksheets(1).Range(strRng2).AddComment
.Visible = False
.text "Modality"
End With
End If
'Select the next cell, get the next value & loop
ActiveCell.Offset(1).Select
strVal = ActiveCell.Value
Loop

'Reset environment and release object vars
With Application
.StatusBar = False
.ScreenUpdating = True
End With
Set wb = Nothing
Set ws = Nothing

End Sub

--
Kevin Backmann


"Ian Cowley" wrote:

Is it possible to set Excel to provide a tooltip or cell description or
comment for individual cells?

here's what we have:
A third-party file format is double-quote-delimited comma-separated
variables, such as:
"RX","1","Joe","Bloggs","23012006","123456","","", "34567"
"FIELD","1","6","Fixed","Sym","10","5","34567"
and so on.
So each line has a different number of elements.
We can import the file into Excel easy enough, and I've written a macro to
re-export the file with the quotes and commas and stuff.
But each element in each line means a different thing. For example, the
third element of a line that starts with "RX" is the first name of a person,
and the fourth element the surname. But the third element of a line that
starts with "FIELD" is the energy in use and the 4th element is the modality
used.

So what I want is to be able to import the file into Excel (easy enough with
Data Import), but have a macro or an add-in running so that when a user
clicks on a cell or hovers over it, a tooltip or description or comment or
something pops up telling the user what the cell means. So hovering over
the third cell of a line where the first cell is RX would put "First Name"
into such a pop-up thing.

Is this even remotely possible? In Powepoint there's the notes fields for
slides, is there a similar sort of mechanism for Excel?

Many thanks in advance,

--
Ian Cowley
Bishop's Stortford

www.iancowley.co.uk/contact



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
making a comment/description area in middle of form template John-picks2592 Excel Discussion (Misc queries) 1 April 2nd 10 08:26 PM
click on part# in pulldown list fills description cell in next col Jules Excel Worksheet Functions 2 February 7th 08 06:08 AM
How to add additional description in a cell to a spreadsheet? Judy S Setting up and Configuration of Excel 1 August 29th 07 05:09 PM
Numeric Cell Value with text description Paco86 Excel Discussion (Misc queries) 2 June 21st 06 12:00 PM
Cell description into the chart maperalia Excel Programming 1 December 9th 05 06:51 PM


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