Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
making a comment/description area in middle of form template | Excel Discussion (Misc queries) | |||
click on part# in pulldown list fills description cell in next col | Excel Worksheet Functions | |||
How to add additional description in a cell to a spreadsheet? | Setting up and Configuration of Excel | |||
Numeric Cell Value with text description | Excel Discussion (Misc queries) | |||
Cell description into the chart | Excel Programming |