changing the name of the excel file using ActXserver
5 次查看(过去 30 天)
显示 更早的评论
How can I change the name of the excel file using Actxserver?
for example science.xls to maths.xls
Is it possible??
Is there some other way to do it?
Thanks you
1 个评论
Guillaume
2015-5-21
编辑:Guillaume
2015-5-21
Note that actxserver is just a way of interfacing with COM interfaces. There are many such COM interfaces. For example you could interact with the COM interface of Scripting.FileSystemObject and do the rename this way in a very roundabout way.
You probably meant to ask how to rename an excel file using Excel COM interface (invoked through actxserver('Excel.Application')). This is not possible this way, since it's not possible in excel. The best you can do is save the file with a different name.
</end pedantic mode>
采纳的回答
更多回答(1 个)
Thomas Koelen
2015-5-21
You could read the file with
xlsread
then save it with the name you want with
xlswrite
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!