D
DB042188
I'm trying to add comments to a range rather than one by one as follows...
Range(Cells(lRow, lOrigCol), Cells(lRow, lCol)).Comment = aRowComment
....in an effort to get better run times but get the following error
object variable or with block variable not set
....when I append .Text on the end of the command I get a compile error
saying assignment to a constant not permitted
aRowComment is an array of comments, built similarly to the array of values
currently transferring to the range with no problems.
Range(Cells(lRow, lOrigCol), Cells(lRow, lCol)).Comment = aRowComment
....in an effort to get better run times but get the following error
object variable or with block variable not set
....when I append .Text on the end of the command I get a compile error
saying assignment to a constant not permitted
aRowComment is an array of comments, built similarly to the array of values
currently transferring to the range with no problems.