Hi,
I am successfully creating Excel spreadsheets, populating them with data, formatting them etc etc all thanks to knowledge gained from "Simple Talk" !!!!!
A few questions however
When I save a file as below, and then open it with Excel I get a message saying the format does not match the file extension. I can still open the file and all my data is there. How can I stop this?
EXEC
@ExecutionResult =sp_OAMethod @objWorkBook, 'SaveAs',null, 'C:\MyNewFolder\Stephen.xls'
I can set quite a lot of properties like font, grid lines and display zeros. I can't do anything that requires selection of a range, like freezing panes at a given location, or setting horizontal aligmnent of a range of cells
Can anyone suggest how to do this?
Thanks
Stephen