We automate Excel using VB.Net and try to place several lines of text on an Excel worksheet that we can set so as not to print. Between them we would have printed reports. We can do this if we add text field objects and set the print object parameter to false. (If you have another way, direct me)
Code for adding a text field:
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 145.5, 227.25, 304.5, 21#)
but positioning in points. We need a way to place it in a specific cell and put it in a cell. How can we find out where to express it when we just know which cell has flipped?
Lou Ann Smith
source share