C
CarlOlen
I'm trying to set the value of the "Comment" cell in the "Miscellaneous"
Section of the shapesheet for a given shape using Visual Basic. I can
correctly create the cell object and read out its contents. But when I try
to set the cell content to a new value, I get an error.
Either...
Set cellObj = shpObjSeriesElement.CellsSRC(visSectionObject, visRowMisc,
visComment)
Debug.Print cellObj.Name
Debug.Print cellObj.Formula
or...
Set cellObj = shpObjSeriesElement.CellsU("Prop.Descriptor")
Debug.Print cellObj.Name
Debug.Print cellObj.Formula
Displaying cell content works fine.
But when I try to set the cell content to something else:
cellObj.Formula = "Text String"
I get a run-time error: -2072466907 (86db0425) #NAME?
What am I doing wrong?
Section of the shapesheet for a given shape using Visual Basic. I can
correctly create the cell object and read out its contents. But when I try
to set the cell content to a new value, I get an error.
Either...
Set cellObj = shpObjSeriesElement.CellsSRC(visSectionObject, visRowMisc,
visComment)
Debug.Print cellObj.Name
Debug.Print cellObj.Formula
or...
Set cellObj = shpObjSeriesElement.CellsU("Prop.Descriptor")
Debug.Print cellObj.Name
Debug.Print cellObj.Formula
Displaying cell content works fine.
But when I try to set the cell content to something else:
cellObj.Formula = "Text String"
I get a run-time error: -2072466907 (86db0425) #NAME?
What am I doing wrong?