Excel列中的扩展名重命名 [英] Extension renaming in Excel Column

查看:66
本文介绍了Excel列中的扩展名重命名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找的是一个VB函数,可以将同一列中的所有文件名重命名为不同的扩展名,下面你看到我拥有的不同文件名,它们都是.jpg,我想要的是什么do是创建一个函数,将其更改为.mpg,就像在另一个表中看到的那样。这是Office 2003 Excel上的Windows Xp。用VB代码。


文件名

9WS705001M1.jpg

9WS705002M1.jpg

9WS705003M1.jpg

9WS705004M1.jpg

9WS705005M1.jpg

9WS705064M1.jpg

9WS705065M1.jpg

9WS705006M1。 jpg

9WS705007M1.jpg

9WS705008M1.jpg

9WS705009M1.jpg


文件名

9WS705001M1.mpg

9WS705002M1.mpg

9WS705003M1.mpg

9WS705004M1.mpg

9WS705005M1.mpg

9WS705064M1.mpg

9WS705065M1.mpg

9WS705006M1.mpg

9WS705007M1.mpg

9WS705008M1.mpg

9WS705009M1.mpg

What I''m looking for is a VB function that would rename all the file names in the same column to a different extension, bellow you see the different filenames I have that they are all .jpg and what I would like to do is create a function that will change it to .mpg like you see in the other table. This is Windows Xp on Office 2003 Excel. Using VB for code.

Filename
9WS705001M1.jpg
9WS705002M1.jpg
9WS705003M1.jpg
9WS705004M1.jpg
9WS705005M1.jpg
9WS705064M1.jpg
9WS705065M1.jpg
9WS705006M1.jpg
9WS705007M1.jpg
9WS705008M1.jpg
9WS705009M1.jpg


Filename
9WS705001M1.mpg
9WS705002M1.mpg
9WS705003M1.mpg
9WS705004M1.mpg
9WS705005M1.mpg
9WS705064M1.mpg
9WS705065M1.mpg
9WS705006M1.mpg
9WS705007M1.mpg
9WS705008M1.mpg
9WS705009M1.mpg

推荐答案

我正在寻找的是一个VB函数这会将同一列中的所有文件名重命名为不同的扩展名,下面你看到我拥有的不同文件名,它们都是.jpg,我想要做的是创建一个函数,将它改为.mpg就像你一样看到ot她的桌子。这是Office 2003 Excel上的Windows Xp。用VB代码。


文件名

705001M1.jpg

705002M1.jpg

705003M1.jpg

705004M1.jpg

705005M1.jpg

705064M1.jpg

705065M1.jpg

705065M1。 jpg

705007M1.jpg

705008M1.jpg

705009M1.jpg


文件名

705001M1.mpg

705002M1.mpg

705003M1.mpg

705004M1.mpg

705005M1.mpg

705064M1.mpg

705065M1.mpg

705006M1.mpg

705007M1.mpg

705008M1.mpg

705009M1.mpg


对不起,我不知道文件名是否重要这是正确的抱歉
What I''m looking for is a VB function that would rename all the file names in the same column to a different extension, bellow you see the different filenames I have that they are all .jpg and what I would like to do is create a function that will change it to .mpg like you see in the other table. This is Windows Xp on Office 2003 Excel. Using VB for code.

Filename
705001M1.jpg
705002M1.jpg
705003M1.jpg
705004M1.jpg
705005M1.jpg
705064M1.jpg
705065M1.jpg
705065M1.jpg
705007M1.jpg
705008M1.jpg
705009M1.jpg


Filename
705001M1.mpg
705002M1.mpg
705003M1.mpg
705004M1.mpg
705005M1.mpg
705064M1.mpg
705065M1.mpg
705006M1.mpg
705007M1.mpg
705008M1.mpg
705009M1.mpg


Sorry i don''t know if the file names matter here are the correct ones sorry about that


= MID(A2,1,LEN(A2) - 3)& " mpg"
=MID(A2, 1, LEN(A2) - 3) & "mpg"



= MID(A2,1,LEN(A2) - 3)& " MPG"
=MID(A2, 1, LEN(A2) - 3) & "mpg"



对不起,但这对我没有任何意义,记住这必须是VB代码


I sorry but this doesn''t make any sense to me and remember this has to be VB code


这篇关于Excel列中的扩展名重命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆