05-22-2017 04:35 PM
Has anybody accessed Excel cells by name rather than cell numbers? Similar to bookmarks in word.
I ahave created a data sheet template in excel. I fill in this template from xml data generated during a test run. I would like to use names as it can be more descriptive than cell numbers.
05-23-2017 01:27 PM
I think you may be looking for Range("C2")
As to formatting information, this is available through various properties of the Excel object model.
See http://msdn.microsoft.com/en-us/library/ff197454.aspx for more information.
The Range type (as opposed to the Range indexed property referenced above) also exposes a Name property, which you can set in code:
worksheet.get_Range("C2").Name = "fdafdfs" worksheet.get_Range("fdafdfs").Select();
05-25-2017 10:36 AM
Thank you Hector!