简体   繁体   中英

Change name of power point files

I would like to change name of Powerpoint files.

I have my ppt file name like : 1.pptx, 2.pptx inside a folder.

I would like to change this name with a corporate title.

How can I proceed to change the name of Powerpoint files in VBA ?

Thanks a lot.

Renaming a file in vba is done with the Name statement

Name "old.pptx" As "new.pptx"

Note that this would fail if you are trying to rename an open document or if your code doesn't have the right permissions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM