메인 컨텐츠로 가기

Excel에서 폴더의 여러 파일 이름을 바꾸는 방법은 무엇입니까?

폴더에있는 여러 파일의 이름을 바꿔야하는이 문제로 인해 우리 대부분은 고통을 겪을 수 있습니다. 파일 이름을 하나씩 바꾸려면 해당 폴더에 수백 또는 수천 개의 파일이 있으면 우리를 미치게 만듭니다. 이 작업을 처리 할 수있는 좋은 기능이 있습니까?

Excel 용 kutools를 사용하여 워크 시트의 특정 폴더에있는 모든 파일 이름 나열

VBA 코드를 사용하여 Excel에서 폴더의 여러 파일 이름 바꾸기


이름을 바꿀 파일이 여러 개인 경우 먼저 워크 시트 열에 이전 파일 이름을 나열한 다음 바꿀 새 파일 이름을 입력 할 수 있습니다. 워크 시트의 모든 파일을 빠르게 나열하려면 Excel 용 Kutools파일명 목록 유용.

설치 후 Excel 용 Kutools, 다음과 같이하십시오 :( 지금 Excel 용 Kutools 무료 다운로드 )

1. 딸깍 하는 소리 쿠툴즈 플러스 > 수입 수출 > 파일명 목록, 스크린 샷 참조 :

2. 에서 파일명 목록 대화 상자에서 문서 이름 바꾸기 다중 파일-1 버튼을 눌러 파일을 나열 할 파일 폴더를 선택한 다음 모든 파일 인사말 파일 유형, 스크린 샷 참조 :

문서 이름 바꾸기 다중 파일-1

3. 그런 다음 OK 버튼을 클릭하면 모든 파일 이름이 일부 파일 속성과 함께 새 워크 시트의 열에 나열되었으며 이제는 원하지 않는 다른 열을 삭제하고 사진이름 열, 스크린 샷 참조 :

문서 이름 바꾸기 다중 파일-1

이 파일 이름 목록 기능에 대해 자세히 알아 보려면 클릭하세요…

지금 Excel 용 Kutools 무료 다운로드


A 열에 모든 원본 파일 이름을 나열한 후 다음 스크린 샷과 같이 B 열에 새 파일 이름을 입력해야합니다.

문서 이름 바꾸기 다중 파일-1

그리고 여기서는 이전 파일 이름을 새 파일 이름으로 한 번에 바꾸는 데 도움이 될 수있는 VBA 코드에 대해 설명하겠습니다. 다음 단계를 수행하십시오.

1. 누르고 ALT + F11 키가 열립니다. Microsoft Visual Basic for Applications 창.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭하고 다음 매크로를 모듈 창.

VBA 코드 : 폴더의 여러 파일 이름 바꾸기

Sub RenameFiles()
'Updateby20141124
Dim xDir As String
Dim xFile As String
Dim xRow As Long
With Application.FileDialog(msoFileDialogFolderPicker)
    .AllowMultiSelect = False
If .Show = -1 Then
    xDir = .SelectedItems(1)
    xFile = Dir(xDir & Application.PathSeparator & "*")
    Do Until xFile = ""
        xRow = 0
        On Error Resume Next
        xRow = Application.Match(xFile, Range("A:A"), 0)
        If xRow > 0 Then
            Name xDir & Application.PathSeparator & xFile As _
            xDir & Application.PathSeparator & Cells(xRow, "B").Value
        End If
        xFile = Dir
    Loop
End If
End With
End Sub

3. 코드를 붙여 넣은 후 F5 이 코드를 실행하는 키와 검색 창에서 파일 이름을 변경할 폴더를 선택하고 스크린 샷을 참조하십시오.

문서 이름 바꾸기 다중 파일-1

4. 그런 다음 OK, 모든 이전 파일 이름이 즉시 새 파일 이름으로 대체되었습니다. 스크린 샷보기 :

문서 이름 바꾸기 다중 파일-1 2 문서 이름 바꾸기 다중 파일-1

배송 시 요청 사항:

1. 이전 및 새 파일 이름을 나열 할 때 파일 확장명을 포함해야합니다.

2. 위 코드에서 참조 A : A 이름을 바꾸려는 이전 파일 이름 목록을 나타내며 B 사용하려는 새 파일 이름이 포함되어 있으면 필요에 따라 변경할 수 있습니다.


Excel 용 Kutools: 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다. 지금 다운로드 및 무료 평가판!

관련 기사 :

Excel의 셀 범위에서 시퀀스 워크 시트를 만드는 방법은 무엇입니까?

Excel에서 여러 워크 시트의 이름을 바꾸는 방법은 무엇입니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (38)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Great! it work for me
This comment was minimized by the moderator on the site
The above stated code does not detect native language file names in Hindi or Marathi - example "HIN-MALE-CH - 7 - कार"
Here the code does not detect "कार"
Any way to handle this issue?
This comment was minimized by the moderator on the site
Sziasztok!
Ha kép nevébe "/" jelet akarok rakni, akkor min kell változtatnom?
Ha benne van a "/" jel akkor nekem nem működik.

Köszönöm
Andor
This comment was minimized by the moderator on the site
Hello, Benedeczki,

Under normal circumstances, the file name cannot contain the /\:*?<>” symbol, so if your picture name contains the / symbol, the code cannot run normally.
You'd better to remove the / symbol from the file name.
Thank you!
This comment was minimized by the moderator on the site
wow, useful and very helpful. BIG THANKS :)
This comment was minimized by the moderator on the site
Sub RenameMultipleFiles()
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect = False
If .Show = -1 Then
selectDirectory = .SelectedItems(1)
dFileList = Dir(selectDirectory & Application.PathSeparator & "*")

Do Until dFileList = ""
curRow = 0
On Error Resume Next
curRow = Application.Match(dFileList, Range("A:A"), 0)
If curRow > 0 Then
Name selectDirectory & Application.PathSeparator & dFileList As _
selectDirectory & Application.PathSeparator & Cells(curRow, "B").Value
End If

dFileList = Dir
Loop
End If
End With
End Sub

this formula does not rename1st document
This comment was minimized by the moderator on the site
Love this so much! Is there a way to use Kutools to edit metadata tags for music similar to this with filenames? Would love being able to mass edit song tags through Excel rather than on iTunes or other third party song tag editors. Thank you!
This comment was minimized by the moderator on the site
okay Thank you
This comment was minimized by the moderator on the site
Hello. I did this for a couple of files and it worked successfully. The next few files i tried, did not work. There were a few formulas added to the new names, could that be the issue?
This comment was minimized by the moderator on the site
Very helpful. Thank you!
This comment was minimized by the moderator on the site
great, worked great for me
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations