changing the name of the excel file using ActXserver
조회 수: 6 (최근 30일)
이전 댓글 표시
Gopalakrishnan venkatesan
2015년 5월 21일
댓글: Gopalakrishnan venkatesan
2015년 5월 21일
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
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!