Note: The other languages of the website are Google-translated. Back to English
로그인  \/ 
x
or
x
계좌 개설  \/ 
x

or

Excel에서 통합 문서를 분리하여 Excel 파일을 분리하는 방법은 무엇입니까?

통합 문서의 각 워크 시트를 개별 Excel 파일로 저장하여 큰 통합 문서를 별도의 Excel 파일로 분할해야 할 수 있습니다. 예를 들어 통합 문서를 여러 개의 개별 Excel 파일로 분할 한 다음 각 파일을 다른 사람에게 전달하여 처리 할 수 ​​있습니다. 이렇게하면 특정 사람이 특정 데이터를 처리하고 데이터를 안전하게 유지할 수 있습니다. 이 기사에서는 큰 통합 문서를 각 워크 시트에 따라 별도의 Excel 파일로 분할하는 방법을 소개합니다.

  1. 복사 및 붙여 넣기를 사용하여 통합 문서를 분리하여 Excel 파일 분리
  2. 이동 또는 복사 기능을 사용하여 통합 문서를 별도의 Excel 파일로 분할
  3. VBA 코드로 통합 문서를 분리하여 Excel 파일 분리
  4. Excel 용 Kutools를 사용하여 통합 문서를 Excel / PDF / CSV / TXT 파일로 쉽게 분할하십시오.

복사 및 붙여 넣기를 사용하여 통합 문서를 분리하여 Excel 파일 분리

평소에는 명령 파스타 명령은 통합 문서를 별도의 Excel 파일로 수동으로 저장할 수 있습니다. 먼저 별도의 파일로 저장할 전체 워크 시트를 선택하고 새 통합 문서를 만든 다음 새 통합 문서에 붙여넣고 마지막에 저장합니다.

몇 개의 워크 시트 만 별도의 파일로 분할해야하는 경우 사용하기 쉬운 방법입니다. 그러나 수동으로 복사 및 붙여 넣기를 사용하여 많은 워크 시트를 분할하는 것은 시간이 많이 걸리고 지루해야합니다.


이동 또는 복사 기능을 사용하여 통합 문서를 별도의 Excel 파일로 분할

이 방법은 선택한 시트를 새 통합 문서로 이동 또는 복사하고 별도의 통합 문서로 저장하는 이동 또는 복사 기능을 도입합니다. 다음과 같이하십시오 :

1. 시트 탭 모음에서 시트를 선택하고 마우스 오른쪽 버튼을 클릭 한 다음 이동 또는 복사 상황에 맞는 메뉴에서. 스크린 샷보기 :

주의 사항: 홀딩 Ctrl 키 키를 사용하면 시트 탭 표시 줄에서 하나씩 클릭하여 인접하지 않은 여러 시트를 선택할 수 있습니다. 보유 변화 키를 사용하면 시트 탭 막대에서 첫 번째 시트와 마지막 시트를 클릭하여 인접한 여러 시트를 선택할 수 있습니다.

2. 이동 또는 복사 대화 상자에서 (새 책) 인사말 예약하려면 드롭 다운 목록에서 사본 만들기 옵션을 클릭하고 OK 단추. 스크린 샷보기 :

3. 이제 선택한 모든 시트가 새 통합 문서로 복사됩니다. 딸깍 하는 소리 입양 부모로서의 귀하의 적합성을 결정하기 위해 미국 이민국에 > 찜하기 새 통합 문서를 저장합니다.

통합 문서를 Excel에서 Excel / PDF / TXT / CSV 파일로 빠르게 분할

일반적으로 통합 문서를 개별 Excel 파일로 분할 할 수 있습니다. 이동 또는 복사 Excel의 기능. 그러나 Excel 용 Kutools 통합 문서 분할 유틸리티를 사용하면 통합 문서를 쉽게 분할하고 각 워크 시트를 별도의 PDF / TEXT / CSV 파일 또는 Excel의 통합 문서로 저장할 수 있습니다. 전체 기능 무료 평가판 30일!
광고 분할 통합 문서 엑셀

Excel 용 Kutools -300 개 이상의 Excel 용 편리한 도구가 포함되어 있습니다. 30 일 전체 기능 무료 평가판, 신용 카드 필요 없음! 이제 그것을 잡아

VBA 코드로 통합 문서를 분리하여 Excel 파일 분리

다음 VBA 코드를 사용하면 현재 통합 문서의 여러 워크 시트를 Excel 파일로 빠르게 분할 할 수 있습니다. 다음과 같이하십시오.

1. 분할 할 통합 문서에 대해 새 폴더를 만듭니다. 분할 된 Excel 파일은이 마스터 통합 문서와 동일한 폴더에 유지되기 때문입니다.

2. 누르고 ALT + F11 Excel에서 키를 클릭하고 응용 프로그램 용 Microsoft Visual Basic 창.

3. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭하고 모듈 창에 다음 코드를 붙여 넣습니다.

VBA : 통합 문서를 여러 통합 문서로 분할하고 동일한 폴더에 저장

Sub Splitbook()
'Updateby20140612
Dim xPath As String
xPath = Application.ActiveWorkbook.Path
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each xWs In ThisWorkbook.Sheets
    xWs.Copy
    Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
    Application.ActiveWorkbook.Close False
Next
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub

4. 눌러 F5 이 코드를 실행하는 키입니다. 그리고 통합 문서는 원본 통합 문서와 동일한 폴더에 별도의 Excel 파일로 분할됩니다. 스크린 샷보기 :

주의 사항: 시트 중 하나가 통합 문서와 이름이 같은 경우이 VBA가 작동하지 않습니다.

Excel 용 Kutools를 사용하여 통합 문서를 Excel / PDF / CSV / TXT 파일로 쉽게 분할하십시오.

당신이 있으면 Excel 용 Kutools 설치, 그것의 통합 문서 분할 도구는 몇 번의 클릭만으로 여러 워크 시트를 개별 Excel 파일로 편리하고 빠르게 분할 할 수 있습니다.

Excel 용 Kutools -300 개 이상의 Excel 용 편리한 도구가 포함되어 있습니다. 30 일 전체 기능 무료 평가판, 신용 카드 필요 없음! 이제 그것을 잡아

1. 설치 후 Excel 용 Kutools클릭 쿠툴즈 플러스 > 통합 문서 분할 , 스크린 샷 참조 :

2. 에서 통합 문서 분할 대화 상자에서 다음 작업을 수행하십시오.
(1) 기본적으로 모든 워크 시트 이름이 선택됩니다. 일부 워크 시트를 분할하지 않으려면 선택을 취소 할 수 있습니다.
(2) 확인 유형 저장 선택권;
(3) 형식으로 저장 드롭 다운에서 분할하고 저장할 파일 유형을 하나 선택합니다.
(4) 그런 다음 스플릿 버튼을 클릭합니다.

주의 사항: 숨겨진 워크 시트 나 빈 워크 시트를 분할하지 않으려면 숨겨진 워크 시트 건너 뛰기 or 빈 워크 시트 건너 뛰기 상자.

3. 폴더 찾아보기 대화 상자에서 분할 된 개별 파일을 저장할 대상 폴더를 지정하고 OK 버튼을 클릭합니다.

이제 확인 된 워크 시트가 별도의 새 통합 문서로 저장됩니다. 각각의 새 통합 문서는 원래 워크 시트 이름으로 이름이 지정됩니다. 스크린 샷보기 :

Excel 용 Kutools's 통합 문서 분할 도구를 사용하면 활성 통합 문서를 필요에 따라 개별 Excel 파일 (하나의 파일에 하나의 워크 시트 포함), CSV 파일, TXT 파일 또는 PDF 파일로 쉽게 분할 할 수 있습니다. 비어 있거나 숨겨진 워크 시트를 모두 건너 뛰도록 설정할 수 있습니다. 무료 평가판을 받으십시오!


데모 : 한 통합 문서의 각 워크 시트를 별도의 Excel / txt / csv / pdf 파일로 분할 또는 저장


Excel 용 Kutools Excel용 300개 이상의 편리한 도구가 포함되어 있으며 30일 동안 제한 없이 무료로 사용해 볼 수 있습니다. 지금 다운로드 및 무료 평가판!

관련 기사 :


최고의 사무 생산성 도구

Excel 용 Kutools는 대부분의 문제를 해결하고 생산성을 80% 향상시킵니다.

  • 재사용: 빠르게 삽입 복잡한 공식, 차트 그리고 이전에 사용한 모든 것; 셀 암호화 암호로; 메일 링리스트 생성 이메일 보내기 ...
  • 슈퍼 포뮬러 바 (여러 줄의 텍스트와 수식을 쉽게 편집 할 수 있습니다.) 레이아웃 읽기 (많은 수의 셀을 쉽게 읽고 편집합니다.) 필터링 된 범위에 붙여 넣기...
  • 셀 / 행 / 열 병합 데이터 손실없이; 셀 내용 분할; 중복 행 / 열 결합... 중복 셀 방지; 범위 비교...
  • 중복 또는 고유 선택 행; 빈 행 선택 (모든 셀이 비어 있음); 슈퍼 찾기 및 퍼지 찾기 많은 통합 문서에서; 무작위 선택 ...
  • 정확한 사본 수식 참조를 변경하지 않고 여러 셀; 참조 자동 생성 여러 시트에; 글 머리 기호 삽입, 확인란 등 ...
  • 텍스트 추출, 텍스트 추가, 위치 별 제거, 공간 제거; 페이징 부분합을 만들고 인쇄합니다. 셀 내용과 주석 간 변환...
  • 슈퍼 필터 (다른 시트에 필터 구성표 저장 및 적용) 고급 정렬 월 / 주 / 일, 빈도 등 특수 필터 굵은 기울임 꼴로 ...
  • 통합 문서와 워크 시트 결합; 키 열을 기반으로 테이블 병합; 데이터를 여러 시트로 분할; xls, xlsx 및 PDF 일괄 변환...
  • 300개 이상의 강력한 기능. Office / Excel 2007-2019 및 365를 지원합니다. 모든 언어를 지원합니다. 기업 또는 조직에 쉽게 배포 할 수 있습니다. 전체 기능 30 일 무료 평가판. 60 일 환불 보장.
kte 탭 201905

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

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성이 50% 증가하고 매일 수백 번의 마우스 클릭이 줄어듭니다!
officetab 하단
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Asmaa · 4 days ago
    Hello, how can we split the sheets tow by tow ==< what i mean is that i have an amount of sheets in one folder and I want tow split each tow successive sheets in one folder, i have tried to put changes on the basic code but i didn't succeed, I'm a beginner in this field if you can be held that is going to be a huge help
  • To post as a guest, your comment is unpublished.
    Waqa · 2 months ago
    xWs.Copy

    showing error in this area
  • To post as a guest, your comment is unpublished.
    Jakub · 5 months ago
    Hello, I just tried the split data function based on the first column (about 90 partners). Half of the worksheets are named correctly while the other just have number of the sheet eventhough there is name of the partner in the column. Any help, please?
  • To post as a guest, your comment is unpublished.
    Sudarshan · 11 months ago
    i have a data of 5 worksheets. Every worksheet has a common column (Branch). Can i convert the data into different excel files based on respective branches
    • To post as a guest, your comment is unpublished.
      kellytte · 11 months ago
      Hi Sudarshan,
      Kutools for Excel has an amazing feature – Split Data, which can quickly split data from a range or a sheet to multiple sheets based on values in the specified column. And these sheets are saved in a new workbook.

      You can apply the Split Data feature to split each sheet based on the specified common column.
      After splitting, you can apply the Combine Worksheets feature, also provided by Kutools for Excel, and combine all same name worksheets into one workbook.
  • To post as a guest, your comment is unpublished.
    prateeksha · 1 years ago
    excel which i want to split is having 3 spread sheet my requirement is to split the excel as per the sheet 1 and remaning to sheet to be contant when file split
    • To post as a guest, your comment is unpublished.
      kellytte · 1 years ago
      Hi prateeksha,
      In the fourth method on this webpage, the Split Workbook feature of Kutools for Excel is recommended, which will split every specified worksheet to individual PDF/CSV/TEXT/Workbooks.
  • To post as a guest, your comment is unpublished.
    Kevin · 1 years ago
    Hey there,
    I was wondering if we can use this macro to split the workbook into csv files
    I've changed the VBA as below, replacing "xlsx" with "csv", but it doesn't work:
    Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".csv"
    Thanks for your help!
    • To post as a guest, your comment is unpublished.
      kellytte · 1 years ago
      Hi Kevin,
      It recommends trying the fourth method to solve your problem. Kutools for Excel can be freely trial for 30 days. And the Split Workbook feature of Kutools for Excel can solve the problem easily.
  • To post as a guest, your comment is unpublished.
    exceluser25 · 1 years ago
    Very helpful code. Just had one question. How can I make these excel files read-only. I tried the below but it did not work.

    Application.ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly
  • To post as a guest, your comment is unpublished.
    Denise Wood · 1 years ago
    Hello,
    Thank you so much for this code. I have used it a few additions successfully many times. However it will no longer work. It saves one file with the name Sheet 1 and it is blank. Any assistance would be greatly appreciated. Thank you!
  • To post as a guest, your comment is unpublished.
    Suraj · 1 years ago
    how can i undo it?
    I mean i split all the sheets, worked on it and now I want all the sheets just like before. PL help
  • To post as a guest, your comment is unpublished.
    Richie · 1 years ago
    Wow. This is a very nice elaboration. you saved the day.
  • To post as a guest, your comment is unpublished.
    Gerdy · 1 years ago
    If I wanted to split the workbook's collection worksheets by fives into workbooks, is that possible? Meaning, If I have 100 worksheets in a workbook, I want to automate using 5 worksheets at a time to make a workbook, which will end with 20 workbooks being made. How do you tweak the code to do this?
  • To post as a guest, your comment is unpublished.
    Gborka · 2 years ago
    VBA works. If not - Probable errors root cause: This VBA cannot handle HIDDEN SHEETS or if one of the sheets has the same name with the workbook.
    • To post as a guest, your comment is unpublished.
      kellytte · 2 years ago
      Hi Gborka,
      You can use the Split Workbook feature of Kutools for Excel, which can export hidden worksheets, and export all worksheets no matter what sheet names are.
  • To post as a guest, your comment is unpublished.
    Влад · 2 years ago
    Спасибо большое, всё работает.
  • To post as a guest, your comment is unpublished.
    Denise · 2 years ago
    Will this VBA work for Mac? It works perfectly for my PC but my manager uses a Mac.
    • To post as a guest, your comment is unpublished.
      Salim · 2 years ago
      Yes!! I just used it on Mac. However you will need to change some thing. The back slash into front slash /. I have already done it. Copy paste it. It will work. Let me know if it doesn't.

      Sub Splitbook()
      'Updateby20140612
      Dim xPath As String
      xPath = Application.ActiveWorkbook.Path
      Application.ScreenUpdating = False
      Application.DisplayAlerts = False
      For Each xWs In ThisWorkbook.Sheets
      xWs.Copy
      Application.ActiveWorkbook.SaveAs Filename:=xPath & "/" & xWs.Name & ".xlsx"
      Application.ActiveWorkbook.Close False
      Next
      Application.DisplayAlerts = True
      Application.ScreenUpdating = True
      End Sub
  • To post as a guest, your comment is unpublished.
    Ambarella · 2 years ago
    The version vba code is not working right, I have a "macros" file where I keep all my macros and have it open when I'm going to use them, and I'm running this one in the file that I need to be splitted but it splits the macros file.
  • To post as a guest, your comment is unpublished.
    User1 · 2 years ago
    Thank you!
  • To post as a guest, your comment is unpublished.
    M. Rameez · 2 years ago
    I found this really help full. Thanks! :)
  • To post as a guest, your comment is unpublished.
    alfonso · 2 years ago
    getting runtime error 1004
    • To post as a guest, your comment is unpublished.
      Christopher Lacey · 2 years ago
      I am as well, I have used this several times in the past but it is not working now
      • To post as a guest, your comment is unpublished.
        Gborka · 2 years ago
        1004 error root cause: This VBA cannot handle hidden sheets or if one of the sheets has the same name with the workbook.
  • To post as a guest, your comment is unpublished.
    Web7 · 3 years ago
    Does anyone know how to make this code work for a mac?
    It is showing an error when trying to locate the document.
    • To post as a guest, your comment is unpublished.
      Dan Turney · 2 years ago
      Change "\" to "/" worked for me. Wow!
  • To post as a guest, your comment is unpublished.
    Ronnie · 3 years ago
    Amazing script and instructions. Just saved me from splitting 30+Worksheets to separate files
    • To post as a guest, your comment is unpublished.
      Kim · 2 years ago
      Same! This worked perfectly for me. Saved me a lot of effort. Thank you!
  • To post as a guest, your comment is unpublished.
    judy.smith5919@gmail.com · 3 years ago
    Please disregard my previous post. I have resolved my issue.
  • To post as a guest, your comment is unpublished.
    judy.smith5919@gmail.com · 3 years ago
    I am using the split data into worksheets based on a column with 27 items in that column. The results are 54 worksheets 2 for each item. The only difference I can see is based on one of the columns in the range. For example:

    Once the split has occured, John Doe has 2 worksheets, one named John Doe and another named Sheet32. Each sheet has information for John Doe, but based on a column "Status" (Billed, Open Order, Salesforce), the information is split. The named worksheet has Billed & Open Order information and the Sheet32 has Salesforce information.


    Any idea what I am doing wrong?


  • To post as a guest, your comment is unpublished.
    Sreejith · 3 years ago
    That really helped. Thank you.
  • To post as a guest, your comment is unpublished.
    Gabriel · 3 years ago
    With the addition of code from comment below it works realy nice.
  • To post as a guest, your comment is unpublished.
    Paulo Corcino · 3 years ago
    Sub Splitbook()
    'Updateby20140612
    Dim xPath As String
    Dim Sourcewb As Workbook
    Dim Destwb As Workbook
    Dim xWs As Worksheet


    xPath = Application.ActiveWorkbook.Path
    Set Sourcewb = ActiveWorkbook

    With Application
    .ScreenUpdating = False
    .EnableEvents = False
    .Calculation = xlCalculationManual
    End With


    ' For Each xWs In ThisWorkbook.Sheets
    For Each xWs In Sourcewb.Worksheets

    If xWs.Visible = -1 Then
    xWs.Copy
    Set Destwb = ActiveWorkbook
    If Destwb.Sheets(1).ProtectContents = False Then
    With Destwb.Sheets(1).UsedRange
    .Cells.Copy
    .Cells.PasteSpecial xlPasteValues
    .Cells(1).Select
    End With
    Application.CutCopyMode = False
    End If
    With Destwb
    .SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
    .Close False
    End With
    End If
    Next

    With Application
    .ScreenUpdating = True
    .EnableEvents = True
    .Calculation = xlCalculationAutomatic
    End With

    MsgBox "You can find the files in " & xPath

    End Sub
  • To post as a guest, your comment is unpublished.
    Emmanuel · 3 years ago
    Hi, can I add or modify the filename?
  • To post as a guest, your comment is unpublished.
    CMG · 3 years ago
    Hi, can I get VBA to split a file with multiple tabs into separate files and save in their respective folders? i.e. If I have a report with 189 tabs each tab for different clients; can I separate those tabs and save each file in a folder specific to that client? The report varies with the number of tabs through out the month.
  • To post as a guest, your comment is unpublished.
    monica.arroyaveb@gmail.com · 4 years ago
    Hi - Can I get VBA to split a file with multiple tabs into files with multiple tabs? i.e. if I have a file with 2 tabs and data in both tabs with a field called customer -100 customers-, can I get VBA to create one file per customer -100 files- with two tabs each?
  • To post as a guest, your comment is unpublished.
    pippa hatt · 4 years ago
    help ive done this loads of times however today its saying an error on the Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx" what am i doing wrong
    • To post as a guest, your comment is unpublished.
      LR · 4 years ago
      You may need to change ".xlsx" on line 9 to ".xls" instead
      • To post as a guest, your comment is unpublished.
        Eben · 3 years ago
        It does that because of the spaces for indentation on lines 8 - 10. Also kept me busy a while to figure out why it's doing that now.
        • To post as a guest, your comment is unpublished.
          Mrs Phillipa L Hatt · 2 years ago
          been using this for a while and now having a run time error 1004 then highlighting in yellow line 8 xWs.copy any ideas please
  • To post as a guest, your comment is unpublished.
    Kelley · 4 years ago
    Hi - instead of splitting each worksheet into a new workbook, is there a way to split groups of worksheets into new workbooks? Ex. Sheet1, Sheet2, Sheet3 go into a workbook, and Sheet4, Sheet5, and Sheet6 go to a second workbook, rather than six new workbooks?
  • To post as a guest, your comment is unpublished.
    tony bones · 4 years ago
    need a vba code to copy an entire workbook (all tabs) and have files saved based on cell range name by state?
  • To post as a guest, your comment is unpublished.
    imran ch · 4 years ago
    thank you very much www.extendoffice.com . very simple and well define post
  • To post as a guest, your comment is unpublished.
    Chris · 4 years ago
    Hi, I have a document of 10 sheets, but I only want the same 8 sheets to copy out each time I hit the command button. What changes can I make to the code (bearing in mind I am a complete amateur in Excel) to get each sheet to adopt the name of the main file, then add the sheet name at the end?

    So as an example the file is called "TESTING" and it has a sheet called "EUROPE". When the macro runs, I want the Europe sheet to be copied out and called "TESTING - EUROPE.xls".
  • To post as a guest, your comment is unpublished.
    adnan · 4 years ago
    Hi
    The coding works well but I want the header also to come on each and every sheet. As it's skipped the header in all data...
  • To post as a guest, your comment is unpublished.
    Karissa Brandhagen · 4 years ago
    How can I get this .xlsx file to save as .csv when split?
  • To post as a guest, your comment is unpublished.
    Nikk · 4 years ago
    Thank you so much! It worked after I unhid the rest of the workbook. This is awesome!
  • To post as a guest, your comment is unpublished.
    Tomm · 4 years ago
    2 questions.

    1. How can you adjust the code the choose the file path of where it is saved? As opposed to just saving wherever the original file is.

    2. How do you change the code to choose what column it creates the tabs from (i.e. in this code it is reading out of column A). I want to be able to choose which column it reads off if. Thanks!
  • To post as a guest, your comment is unpublished.
    Jessica P. · 4 years ago
    Thank you very much for this.Saved me weeks of sweat...
     
    Regards:Jessica
    Active consumer on customerso
  • To post as a guest, your comment is unpublished.
    Anjali · 4 years ago
    Hi, i have one quarry i.e. i have 15000 lines of data in one excel sheet and i want to split that data into multiple excel files where as each file contains 99 lines of data. Anyone can help me. Please share your thoughts.....
  • To post as a guest, your comment is unpublished.
    DS · 4 years ago
    This VBA code worked perfectly. Thank you for sharing your wealth of knowledge.
  • To post as a guest, your comment is unpublished.
    Brad · 4 years ago
    The macro should be updated to include an unhide-all-worksheets piece (including the very-hidden worksheets):

    Sub UnhideAllSheets()
    'Unhide all sheets in workbook.
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
    ws.Visible = xlSheetVisible
    Next ws
    End Sub

    Sub Splitbook()
    'Updateby20140612
    Dim xPath As String
    xPath = Application.ActiveWorkbook.Path
    Application.ScreenUpdating = False
    Application.DisplayAlerts = False
    For Each xWs In ThisWorkbook.Sheets
    xWs.Copy
    Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
    Application.ActiveWorkbook.Close False
    Next
    Application.DisplayAlerts = True
    Application.ScreenUpdating = True
    End Sub
  • To post as a guest, your comment is unpublished.
    Brad · 4 years ago
    IT SHOULD BE NOTED THAT THE VBA MACRO ABOVE WON'T WORK IF YOU HAVE A HIDDEN EXCEL SHEET, OR A "VERY-HIDDEN" EXCEL SHEET.

    YOU MAY NOT BE AWARE THAT YOU HAVE A "VERY-HIDDEN" EXCEL SHEET. TO CHECK, HIT ALT+F11 TO OPEN MICROSOFT VISUAL BASIC (MACRO EDITOR). CLICK ON EACH WORKSHEET UNDER THE MICROSOFT EXCEL OBJECTS AND MAKE SURE THAT THE "Visible" ATTRIBUTE IN THE "Properties" SECTION SHOWS "-1 = xlSheetVisible". IF YOU SPIT AN EXCEL FILE OUT OF ORACLE, FOR EXAMPLE, YOU'LL SEE A WORKSHEET NAMED "BneLog" with visibility = "2 - xlSheetVeryHidden". This took me forever to figure out, lol. Hope it helps!
    • To post as a guest, your comment is unpublished.
      David · 4 years ago
      Great tip! I was beating my head against a wall until this occurred to me. I saw previous comments about hidden sheets but until I realized an existing macro was "very hidden", it didn't make sense to me. On to the next project!
  • To post as a guest, your comment is unpublished.
    sunil · 4 years ago
    Used this and it worked. Just what I needed. Thanks
  • To post as a guest, your comment is unpublished.
    Jignesh S Thakrar · 5 years ago
    Hi

    I'm have master file were data consist for multiple city would like know is their any macros or any formula which keeps this orignal file and also create & update new workbook city area wise
  • To post as a guest, your comment is unpublished.
    Snehalata Gupta · 5 years ago
    Hello all,

    I need to reciprocate the same thing.

    there are lots of excel sheets and i want it te 1st sheet of it in single work book,
    Please Help!!!!
  • To post as a guest, your comment is unpublished.
    Bakhty · 5 years ago
    VBA script worked like a charm, got my 80+ new excel files
  • To post as a guest, your comment is unpublished.
    shanojirao · 5 years ago
    Hi All,

    I need a help from you all,

    I've to share the reports to multiple team depending on the brands they work for.

    Eg: brand name:
    Apple
    Samsung
    and many more around 60 brands.

    there will be a sales dump.

    If I want to run a macro, and spilt into multiple excel files what would be the procedure.

    Kindly help me.

    Thanks in Advance.

    Regards,
    Shan
  • To post as a guest, your comment is unpublished.
    Rogier van Meggelen · 5 years ago
    The code works great. Can you also use this to save the tabs as pdf files.
    It can't figure this out :)
  • To post as a guest, your comment is unpublished.
    Rogier van Meggelen · 5 years ago
    The code works great! is it also possible to save the different tabs as a pdf? I tried but the i can't get it to work :)
  • To post as a guest, your comment is unpublished.
    Anandaraj.M · 5 years ago
    Thanks for your valuable support