Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I have a spreadsheet with some text in it, and I do not want to increase the cell size to display it. Is there a way I can write a macro to display the cell value on an input box (like in data validation), when there is focus on the cell? I have been able to do this for only one cell, but it has a range reference to it - how do i refer to the cells own value, to display it on the input box? Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Paste this code into your worksheet module,it will create a comment box
with A1 text, So whenever you focus on A1 the comment box will pop up showing you what is in it Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1").ClearComments Range("A1").AddComment Range("A1").Comment.Visible = False Range("A1").Comment.Text Text:=Range("A1").Text End Sub |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks,
Is there a way I can do this for multiple cells in one go? I have a column of say - a 100 items I want this done for... Sunil |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This will add comments to cells A1 to A100
Sub AddComment() Dim i As Integer For i = 1 To 100 With Cells(i, 1) .ClearContents .AddComment .Comment.Visible = False .Comment.Text Text:=Cells(i, 1).Text End With End Sub Sandy wrote: Thanks, Is there a way I can do this for multiple cells in one go? I have a column of say - a 100 items I want this done for... Sunil |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This will add comments to cells A1 to A100
Sub AddComment() Dim i As Integer For i = 1 To 100 With Cells(i, 1) .ClearComments .AddComment .Comment.Visible = False .Comment.Text Text:=Cells(i, 1).Text End With End Sub Sandy wrote: Thanks, Is there a way I can do this for multiple cells in one go? I have a column of say - a 100 items I want this done for... Sunil |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multi line merged cell - adapting to different size input - possible? | Excel Discussion (Misc queries) | |||
=IF cell needs to show blank if blank | Excel Discussion (Misc queries) | |||
Want #VALUE! to show as blank cell | Excel Worksheet Functions | |||
How do I change the format of a cell based on what I input? | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |