08-05-2011, 11:18 PM
Hi All,
Just starting to get into the Excel functions. I can do the basics (set cell, get cell, etc) but I would like to set a comment onto a specific cell. I am looking into the VB script in how to do this but not sure how to translate that into QMscript.
I am looking at this example and still confused:
Macro Macro
I see a ws.Comments option but not sure how to syntax it for a specific string insert and cell address.
Thanks for any help!
Stuart
Just starting to get into the Excel functions. I can do the basics (set cell, get cell, etc) but I would like to set a comment onto a specific cell. I am looking into the VB script in how to do this but not sure how to translate that into QMscript.
I am looking at this example and still confused:
Macro Macro
;select range of cells
ExcelSheet es2.Init
es2.ws.Range("A1:B2").Select
;save all files and close Excel
Excel.Application ea=es2.ws.Application
Excel.Workbook wb; foreach(wb ea.Workbooks) wb.Save
ea.Quit
I see a ws.Comments option but not sure how to syntax it for a specific string insert and cell address.
Thanks for any help!
Stuart