Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to read information from a comment and then get the address of
the cell the comment is attached to before writing the information into the same cell in an other workbook. So for instance, If comment(1) in workbook(a).worksheet(a) is @ range("I92") then I want to write comment(1)'s string to workbook(b).worksheet(?).range("I92") I've been attempting to use: Workbooks("b").Worksheets("b").Activate ActiveSheet.Range(CellComnt.Parent.Column & CellComnt.Parent.row).text = Workbooks("a").Worksheets("a").Comments(1).Text with no success. Please, I'm exasperated, can someone help? (I'm using Excel 2003) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got this to write the comments on worksheet 1 (the activesheet) to
worksheet 2. Sub FindComments() Dim CellCmnt As Comment Dim aWS As Worksheet Set aWS = ActiveSheet 'Which happens to be Worksheets(1) Set oWS = Worksheets(2) For Each CellCmnt In aWS.Comments oWS.Range(CellCmnt.Parent.Address).Value = CellCmnt.text Next CellCmnt End Sub -- HTH, Barb Reinhardt If this post was helpful to you, please click YES below. "MiD-AwE" wrote: I am trying to read information from a comment and then get the address of the cell the comment is attached to before writing the information into the same cell in an other workbook. So for instance, If comment(1) in workbook(a).worksheet(a) is @ range("I92") then I want to write comment(1)'s string to workbook(b).worksheet(?).range("I92") I've been attempting to use: Workbooks("b").Worksheets("b").Activate ActiveSheet.Range(CellComnt.Parent.Column & CellComnt.Parent.row).text = Workbooks("a").Worksheets("a").Comments(1).Text with no success. Please, I'm exasperated, can someone help? (I'm using Excel 2003) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to discover the difference | Excel Worksheet Functions | |||
COUNTIF to count cells that have an attached comment | Excel Discussion (Misc queries) | |||
discover format of Excel Cell using VBA | Excel Programming | |||
form in excel to be attached to the emails address in the form upon sumission | Excel Programming | |||
discover cell causing column width | Excel Programming |