I know this question has been asked before, but I have tried answers to both of them and neither have worked for me..
Current Code:
Dim aString As String
Dim address As String
For Each thisTriangle In triangleArray
drawTriangle(rowToDrawIn, thisTriangle.getMarkedCell)
aString = String.Format("Activity Name: {0}", thisTriangle.getActivityDescription)
//here is where I am trying to get the address
address = xlWorkSheet.Cells.Address(rowToDrawIn, thisTriangle.getMarkedCell)
xlWorkSheet.Range(address).AddComment(aString)
Next
As you can see, I'm attempting to get the address and then put a comment in that address. I am receiving a runtime error when this code is run. thisTriangle.getMarkedCell
returns an int as the column number and rowToDrawIn
is the row number.
Any and all help is much appreciated.