Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to copy the contents of a comments box to a cell on a
different sheet using VBA? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi TommoUK,
Try something like: '============= Public Sub Tester001() Dim SrcRng As Range Dim destRng As Range Dim cmt As Comment Set SrcRng = ThisWorkbook.Sheets("Sheet1").Range("A1") Set destRng = ThisWorkbook.Sheets("Sheet2").Range("B1") Set cmt = SrcRng.Comment destRng.Value = cmt.Text Set cmt = Range("A1").Comment End Sub '<<============= -- --- Regards, Norman "TommoUK" wrote in message ... Is it possible to copy the contents of a comments box to a cell on a different sheet using VBA? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi TommoUK.
Please delete the extraneous final line: Set cmt = Range("A1").Comment --- Regards, Norman "Norman Jones" wrote in message ... Hi TommoUK, Try something like: '============= Public Sub Tester001() Dim SrcRng As Range Dim destRng As Range Dim cmt As Comment Set SrcRng = ThisWorkbook.Sheets("Sheet1").Range("A1") Set destRng = ThisWorkbook.Sheets("Sheet2").Range("B1") Set cmt = SrcRng.Comment destRng.Value = cmt.Text Set cmt = Range("A1").Comment End Sub '<<============= -- --- Regards, Norman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text Box contents to cell comments | Excel Discussion (Misc queries) | |||
Copying comments from one cell to another, in a different spreadsheet | Excel Worksheet Functions | |||
UDF code to find specific text in cell comments, then average cell values | Excel Programming | |||
Copying of cell text from one file to paste as cell comments in a 2nd file | Excel Programming | |||
Copying comments from one cell to another | Excel Programming |