How to Split Each Excel Sheet Into a Separate File

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น •

  • @tds6599
    @tds6599 2 ปีที่แล้ว +2

    DUDE!!! YOU ARE MY NEW GOD HERO!!!!!!!!!! You literally just shaved HOURS off my work for a monthly task . . . so FREAKING COOL!!!!

  • @Dr_Chintan_Bhuva
    @Dr_Chintan_Bhuva ปีที่แล้ว

    Simple and amazing trick...your attitude to help others is saving so much time of everyone...may lord swaminarayan bless you with peace...

  • @rayanreslan4256
    @rayanreslan4256 2 ปีที่แล้ว +3

    So for those who are facing errors , i think i found a way to move around it , i was facing the same error , i think its because i copied the workbook and pasted it somewhere else . And maybe thats why it wasnt working. Then i created a brand new macro enabled excel in my desired location , i went to the initial one with all my sheets and data , select the first sheet , go to the very last sheet , "shift"+click on last sheet this selects the entirety of your sheets , then right click , move or copy , tick create copy , and select your brand new empty excel , you now have a new copy of your excel. Then use the macro , worked perfectly.
    Now , this is just my theory , it could be that moving excels around copying and cutting could interfere with the macro , or having multiple other macros also affect its functionality but i doubt that.
    Basically creating an excel in a folder and keeping it in that native folder without moving it around seemed to be the core for this , because the errors i was facing were path related , so maybe copying and moving excels around could f*** around with pathfinding.
    This worked for me hopefully it does for you aswell.

  • @KeithHarrison73
    @KeithHarrison73 3 ปีที่แล้ว +1

    This was a life saver. I needed to create 95 individual files from the 95 sheets in my workbook. It was fast and easy using your vba script! Each file had to follow a specific naming convention, but I was able to tweak your script to get exactly what I needed. Thank you.

    • @pearl4177
      @pearl4177 3 ปีที่แล้ว

      Do you know how to share these files then via mail??

    • @KeithHarrison73
      @KeithHarrison73 3 ปีที่แล้ว +1

      @@pearl4177 - Are you looking for an added step- automatically emailing each file to a specific recipient? I’m sure that can be done, but I don’t know how to do it. I only needed to upload all of my individual files to a specific drive.

    • @KeithHarrison73
      @KeithHarrison73 3 ปีที่แล้ว +1

      @@pearl4177 - Try this video to see if it’s what you need: th-cam.com/video/1YMPltjyXeA/w-d-xo.html

    • @pearl4177
      @pearl4177 3 ปีที่แล้ว

      @@KeithHarrison73 thank you Keith for the link..

  • @ianretallick8242
    @ianretallick8242 6 หลายเดือนก่อน +1

    Amazing! Thank you Sumit. Just saved me loads of time. It looks complicated but I just paused each step and then applied each
    action. Worked like a dream!!!

    • @trumpexcel
      @trumpexcel  6 หลายเดือนก่อน

      Glad it helped 🙂

  • @jentysjournals7352
    @jentysjournals7352 2 ปีที่แล้ว +2

    So fast and very helpful. I had to split out a very large workbook with many tabs and this did it in seconds. You are the BOMB!

  • @shanijaiswal2296
    @shanijaiswal2296 2 ปีที่แล้ว

    Amazing video. Actually, it was an imagine till now but today it has come true only because of you. Thanks a lot.

  • @dizzaannprieto19
    @dizzaannprieto19 3 ปีที่แล้ว +3

    As a teacher with lacking ICT skills, this was very helpful! thank you!

  • @mynameisricon1
    @mynameisricon1 2 ปีที่แล้ว +1

    YOU SAVED MY LIFE, LITERALLY

  • @SBScott
    @SBScott ปีที่แล้ว

    Worked like a charm. Easy to follow instructions and the explanation of why you did it the way you did was helpful.

  • @naisargishah7900
    @naisargishah7900 3 ปีที่แล้ว +1

    Idk how to thank enough... You saved my precious time 🥺

  • @essys1991
    @essys1991 2 หลายเดือนก่อน +1

    The information you provided was very easy to follow and time saving. Thank you very much!

  • @cristinamiranda2310
    @cristinamiranda2310 ปีที่แล้ว +1

    Thanks I become expert in a split seconds!

  • @wahyuhanifairusshaba
    @wahyuhanifairusshaba ปีที่แล้ว +1

    thank you for your code!! i did my job done in a second!

  • @atharvajogdeo1225
    @atharvajogdeo1225 2 ปีที่แล้ว

    I have nothing to say man ..🙏🙏🙏
    U r video is ssrly working as a trump card for me...thank u so much

  • @color1968
    @color1968 10 หลายเดือนก่อน +1

    This is fantastic, save lot of my time. Big thank is not enough to show my appreciation.

    • @trumpexcel
      @trumpexcel  10 หลายเดือนก่อน

      Glad the video helped 😀

  • @SueStopka
    @SueStopka 11 หลายเดือนก่อน

    This was so great and I'm not a techie at all. Thanks so much!

  • @sherryfarwick275
    @sherryfarwick275 2 หลายเดือนก่อน

    Thank you! Such a huge timesaver! Easy to follow and simple!

  • @MrKagiMoni
    @MrKagiMoni ปีที่แล้ว

    GOLD. Pure GOLD. Thanks Bansal :)

  • @tailaw
    @tailaw ปีที่แล้ว +1

    This is really easy to follow!!! Thank you so much to make my life easier!!!!

  • @cherechukwuezeh3112
    @cherechukwuezeh3112 ปีที่แล้ว

    Thanks a lot for this, it just saved me 2hrs work

  • @meleuangelion7675
    @meleuangelion7675 2 ปีที่แล้ว +4

    Wow! This was simple and straightforward 👏 TY so much for making life “at work” so much simpler 🥰

  • @rajkumarreddy1620
    @rajkumarreddy1620 3 ปีที่แล้ว

    This is not a simple help at free of cost. Really very helpful. Thank you.

  • @robertadafallon660
    @robertadafallon660 ปีที่แล้ว

    Took me less than 5 minutes!! Thank you sir!!!

    • @trumpexcel
      @trumpexcel  ปีที่แล้ว

      Glad the video worked for you 🙂

  • @anower120
    @anower120 8 หลายเดือนก่อน

    Thank you for making my life easier! It is very helpful for me.

  • @MAB_FinTech
    @MAB_FinTech ปีที่แล้ว

    Awesome Tip - This is very efficient! I hate manual work and creating 100s of these files each quarter. Although I review these and it's done by my colleague but even reviewing each of the files one by one is a Pain! This is great, Thank you very much for this tip. You earned yourself a Sub! :)

  • @albieschoeman4006
    @albieschoeman4006 3 หลายเดือนก่อน

    Thanks Man, Saved my days of work

  • @LaNdoloChanel
    @LaNdoloChanel 2 ปีที่แล้ว

    there is no developer tab on my excel, what kind of excel are you using ?

  • @cristovaorocha3516
    @cristovaorocha3516 2 ปีที่แล้ว +1

    This is awesome, works like a charm! Thank you, Sir!

    • @trumpexcel
      @trumpexcel  2 ปีที่แล้ว +1

      Glad you found the video useful :)

  • @thankgodconquest3877
    @thankgodconquest3877 4 หลายเดือนก่อน +1

    This is a life saver. Thank you so much

  • @kingslyamalanathan983
    @kingslyamalanathan983 2 ปีที่แล้ว

    wow.. it is awesome. thanks 1000 times you saved me! I was struggling to do this, but with your video, it has become very easy and simple .. thanks ..thanks..thanks.

  • @stevemarshall8873
    @stevemarshall8873 ปีที่แล้ว

    You're a legend! Thank you sir!

  • @avinashpawar4971
    @avinashpawar4971 3 ปีที่แล้ว +1

    Thanks Bansal, your code saved me hours of work (& of course manual entry error free). A great tip!!

  • @muhamadzaid3562
    @muhamadzaid3562 27 วันที่ผ่านมา

    Thank You. You save my time.

  • @aktarujjamanmamun1178
    @aktarujjamanmamun1178 ปีที่แล้ว

    It's So fast and very helpful. Thanks

  • @szargarepa
    @szargarepa 4 ปีที่แล้ว +6

    Many thanks for this video and sharing the code! I managed to adjust it a bit for my needs and you just saved me and a friend of mine a couple of hours every week :D Cheers!

  • @Gary-bz5mf
    @Gary-bz5mf 8 หลายเดือนก่อน

    Great job, thanks. Saved me a few hours of work

    • @trumpexcel
      @trumpexcel  8 หลายเดือนก่อน

      Glad you found the video helpful Gary 🙂

  • @sumitbarman5895
    @sumitbarman5895 4 ปีที่แล้ว +19

    Just an observation: Unhide all the sheets before debugging the code or it will through error. Thanks for the video sir.

    • @learnwithme24-7
      @learnwithme24-7 3 ปีที่แล้ว

      Thank you. It was a great tip

    • @xeniaorozco5557
      @xeniaorozco5557 ปีที่แล้ว

      YOU SAVED MY LIFE! I was trying to run the module for the past hour and it was giving me an error and I COULD NOT figure out what it was. I had one sheet hidden!! thank you!!!

    • @LayanMalhamrani
      @LayanMalhamrani 3 หลายเดือนก่อน

      I don't have any sheets hiddin and it still showed me a bug in "Application.ActiveWorkbook.SaveAs Filename:=FPath & "\" & ws.Name & ".xlsx""

  • @tanujjoshi9622
    @tanujjoshi9622 หลายเดือนก่อน

    very helpful video great work🎉

  • @shivangiagrawal2665
    @shivangiagrawal2665 4 หลายเดือนก่อน

    This worked for me so well. Thank you

  • @moondropx
    @moondropx 3 ปีที่แล้ว

    You have earned yourself a subscriber.

  • @MonzonFam
    @MonzonFam 3 ปีที่แล้ว

    short and simpel and solved exactly what I need. Thank you, I'm now the hero of the day.

  • @avishaimoscovich453
    @avishaimoscovich453 ปีที่แล้ว

    This is great. Is there a way to modify the code to work on Excel for Mac?

  • @hemvaidya
    @hemvaidya 10 หลายเดือนก่อน

    Thank you so much dear Sumit......it helped me a lot

  • @itsnotif.itswhen
    @itsnotif.itswhen 2 ปีที่แล้ว

    Thank you so much for your work. I was able to save so much time with your code.

  • @ashleykruzel1072
    @ashleykruzel1072 2 ปีที่แล้ว

    You saved me hours of work!!! Thank you!!!

  • @ankitchopra1286
    @ankitchopra1286 2 ปีที่แล้ว

    Awesome feature bro !! Take a bow 🤠🤠

  • @aymericzambo1914
    @aymericzambo1914 ปีที่แล้ว

    Thank you for the VBA code! Great work

  • @machumh3776
    @machumh3776 3 ปีที่แล้ว +1

    Thank you so much. Its very informative & helpful.

  • @sunilpant2339
    @sunilpant2339 5 ปีที่แล้ว +3

    Thank you so much....I request you that if possible ....kindly make a playlist of these utility VBA code which are required in day to day office work..... I am sure many people are looking for such playlist....

    • @KaiWeissmann
      @KaiWeissmann 3 ปีที่แล้ว

      Have you found such a playlist? I would be interested in it too

  • @gshankaran21
    @gshankaran21 ปีที่แล้ว

    Thank you, it saved my time and effort 🎉

  • @bhavanab8190
    @bhavanab8190 2 ปีที่แล้ว

    bro it worked u saved my time thank u

  • @anshu2006gupta
    @anshu2006gupta 3 ปีที่แล้ว +1

    nice.....It's possible to split Jan to Dec but 2 fixed worksheets with every Jan to Dec worksheets? please reply

  • @evelynebui6540
    @evelynebui6540 2 ปีที่แล้ว +2

    Hi Sumit, thanks for the tips!
    When I run the macro it doesn't save the files and it shows "Run-time error '1004': Method 'SaveAs' of object'_Workbook' failed.
    Do you know what went wrong? Thanks

    • @DanHolly3
      @DanHolly3 2 ปีที่แล้ว

      Same for me

    • @rayanreslan4256
      @rayanreslan4256 2 ปีที่แล้ว +1

      So for those who are facing errors , i think i found a way to move around it , i was facing the same error , i think its because i copied the workbook and pasted it somewhere else . And maybe thats why it wasnt working. Then i created a brand new macro enabled excel in my desired location , i went to the initial one with all my sheets and data , select the first sheet , go to the very last sheet , "shift"+click on last sheet this selects the entirety of your sheets , then right click , move or copy , tick create copy , and select your brand new empty excel , you now have a new copy of your excel. Then use the macro , worked perfectly.
      Now , this is just my theory , it could be that moving excels around copying and cutting could interfere with the macro , or having multiple other macros also affect its functionality but i doubt that.
      Basically creating an excel in a folder and keeping it in that native folder without moving it around seemed to be the core for this , because the errors i was facing were path related , so maybe copying and moving excels around could f*** around with pathfinding.
      This worked for me hopefully it does for you aswell.

  • @abhishekranjan2617
    @abhishekranjan2617 3 ปีที่แล้ว +1

    Thanks, man. It's a wonderful and awesome tutorial. I like this tutorial..😍😍❤❤🤗🤗💪👌👌😎🥰👍👍

  • @moesadr3342
    @moesadr3342 4 ปีที่แล้ว +1

    How about if we need to save them all sheets in .csv format as well?

  • @chinthagurunathreddy
    @chinthagurunathreddy ปีที่แล้ว

    Thank you it saved me 30 mins

  • @bassplayz3568
    @bassplayz3568 3 ปีที่แล้ว +5

    This looks great. However, I am experiencing a Run-Time error '1004' Method 'SaveAs' of object'_Workbook' failed - Can you help??

    • @mdshaheen5983
      @mdshaheen5983 2 ปีที่แล้ว

      Please give a solution to this issues.

    • @rayanreslan4256
      @rayanreslan4256 2 ปีที่แล้ว +1

      So for those who are facing errors , i think i found a way to move around it , i was facing the same error , i think its because i copied the workbook and pasted it somewhere else . And maybe thats why it wasnt working. Then i created a brand new macro enabled excel in my desired location , i went to the initial one with all my sheets and data , select the first sheet , go to the very last sheet , "shift"+click on last sheet this selects the entirety of your sheets , then right click , move or copy , tick create copy , and select your brand new empty excel , you now have a new copy of your excel. Then use the macro , worked perfectly.
      Now , this is just my theory , it could be that moving excels around copying and cutting could interfere with the macro , or having multiple other macros also affect its functionality but i doubt that.
      Basically creating an excel in a folder and keeping it in that native folder without moving it around seemed to be the core for this , because the errors i was facing were path related , so maybe copying and moving excels around could f*** around with pathfinding.
      This worked for me hopefully it does for you aswell.

  • @mohaohaiba
    @mohaohaiba 3 ปีที่แล้ว

    Hats off. you make life easy for me. I appreciate!!!

  • @eta8304
    @eta8304 2 ปีที่แล้ว

    is the file dynamic? does it automatically change when you change the contents of the mother file?

  • @bhaskarmalakar2612
    @bhaskarmalakar2612 2 ปีที่แล้ว

    You made my day brother....🙏🙏

  • @Khmergisacademy
    @Khmergisacademy 2 ปีที่แล้ว

    I appreciate your effort in this video. Such an informative one. Thanks.

  • @fruity_cereal
    @fruity_cereal 11 หลายเดือนก่อน +1

    OMG TYSM SAVED MY LIFE FR

    • @trumpexcel
      @trumpexcel  11 หลายเดือนก่อน +1

      Glad you found the video helpful!

  • @vinayghase
    @vinayghase 3 ปีที่แล้ว

    Thanks a lot brother...simple and fast ..keep it up

  • @pravallikabhanu4847
    @pravallikabhanu4847 3 ปีที่แล้ว

    Hello, thanks for the video! a small doubt please, actually i need to copy the data validation link sheet also into the msplittled files, please help

  • @brajamohansahoo99
    @brajamohansahoo99 5 ปีที่แล้ว +1

    Very nice & simple code sir. Please make a video for consolidate multiple workbooks having multiple sheets. Consolidated workbook should have multiple worksheets also

  • @ryanaguilar5006
    @ryanaguilar5006 3 ปีที่แล้ว

    You're a superstar mate!

  • @oscarvelasco2671
    @oscarvelasco2671 2 ปีที่แล้ว

    Thanks a lot my friend, you saved me a lot of work!

  • @williamdelage9239
    @williamdelage9239 ปีที่แล้ว

    This is a great video, thank you!

  • @drsophietan4284
    @drsophietan4284 ปีที่แล้ว

    Thank you so much for the direct, simple, and workable work, you saved so much of my time! 👏👏

  • @nelukanuwan
    @nelukanuwan 2 หลายเดือนก่อน

    superb. it's really helpfull thank you soo much.

  • @healer2773
    @healer2773 3 ปีที่แล้ว

    Can I do this for a specific sheet only? And can I add custom path? Like it will create folder in that path and save it

  • @devendrabain7748
    @devendrabain7748 5 ปีที่แล้ว +1

    Very useful trick sir, thanks for providing the VBA code it will help the user with little VBA knowledge. 👍

  • @Monster-zf6gc
    @Monster-zf6gc 2 ปีที่แล้ว

    This is just an amazing. You helped me a lot bro. Many Thanks

  • @ceoup
    @ceoup 3 ปีที่แล้ว +1

    please tell me is it possible to split single sheet in multiple workbooks (on the basis of there is 75 districts in one column want different workbooks for each District )

    • @trumpexcel
      @trumpexcel  3 ปีที่แล้ว

      It can be done with VBA. You will have to create the code for it

  • @torisstephens4438
    @torisstephens4438 5 ปีที่แล้ว +3

    Tried to run the code but it doesn't work on with Mac, getting errors. Can you provide the update?

  • @TheSunnyprakash
    @TheSunnyprakash 3 ปีที่แล้ว

    Thanks a lot Sir.It works.Saved hours of works.

  • @migs-b6r
    @migs-b6r 8 หลายเดือนก่อน

    Wonderful. Works magic. Thanks.

    • @trumpexcel
      @trumpexcel  8 หลายเดือนก่อน

      👍

  • @toiyeunguojtoiyeu
    @toiyeunguojtoiyeu ปีที่แล้ว

    Thank you so much! This is awesome!

  • @poancaghiocel9167
    @poancaghiocel9167 ปีที่แล้ว

    Hello, you saved my day, thank you a lot. . .

  • @roundfaceal9164
    @roundfaceal9164 9 หลายเดือนก่อน

    Is there a way to add a phrase in addition to the name? For example I need to add 2-24 subsidy to each one

  • @aryansaluja4159
    @aryansaluja4159 2 ปีที่แล้ว

    Can we make changes to original workbook and will they reflect in splitted sheets after the split is done?

  • @mika_video
    @mika_video ปีที่แล้ว

    Very helpful man! Thanks a lot

  • @marions.3657
    @marions.3657 2 ปีที่แล้ว

    THANKS, YOU FOR JUST SAVED ME SOME TIME |!!!!!!!

  • @namrohit1
    @namrohit1 5 ปีที่แล้ว

    thank you sir.
    i done split each excel sheet in multiple excel file.
    NICE TRICK
    :)

  • @KeithDavid-r6t
    @KeithDavid-r6t 6 หลายเดือนก่อน

    I loved the video but had to make a new sheet vs copy my old data file into the folder to avoid getting an error.
    If you want to save the files as CSV vs xlsx is that possible? I tried playing with the code and changed the line.
    Application.ActiveWorkbook.SaveAs Filename:=FPath & "\" & ws.Name & ".xlsx"
    To:
    Application.ActiveWorkbook.SaveAs Filename:=FPath & "\" & ws.Name & ".csv"
    but it doesn't populate the sheets until I change it back to xlsx and run that again. After it populates both the csv and xlsx files.
    I was hoping there was a way to make it populate the csv without having the run the program twice.

  • @abacon
    @abacon 3 ปีที่แล้ว

    Keep up the good work. You saved me a huge amount of time.

  • @Varshasharma-v1p
    @Varshasharma-v1p 3 หลายเดือนก่อน

    thank you so much finally i found it.. Thanks really

  • @vinodsiwan123
    @vinodsiwan123 3 ปีที่แล้ว +2

    i am getting error path/file access error: :\VB8F8E.tmp' when code go to ws.copy every time i running the vba code this is find through step into (F8). Please help as three times this code executed but after it is showing same error . How we overcome this hurdle.

    • @rayanreslan4256
      @rayanreslan4256 2 ปีที่แล้ว

      So for those who are facing errors , i think i found a way to move around it , i was facing the same error , i think its because i copied the workbook and pasted it somewhere else . And maybe thats why it wasnt working. Then i created a brand new macro enabled excel in my desired location , i went to the initial one with all my sheets and data , select the first sheet , go to the very last sheet , "shift"+click on last sheet this selects the entirety of your sheets , then right click , move or copy , tick create copy , and select your brand new empty excel , you now have a new copy of your excel. Then use the macro , worked perfectly.
      Now , this is just my theory , it could be that moving excels around copying and cutting could interfere with the macro , or having multiple other macros also affect its functionality but i doubt that.
      Basically creating an excel in a folder and keeping it in that native folder without moving it around seemed to be the core for this , because the errors i was facing were path related , so maybe copying and moving excels around could f*** around with pathfinding.
      This worked for me hopefully it does for you aswell.

  • @bhagyalakshmibabu8874
    @bhagyalakshmibabu8874 ปีที่แล้ว

    This works..thank you for the help

  • @AlexBruce-t3m
    @AlexBruce-t3m ปีที่แล้ว

    Hi @trumpexcel I keep getting the following error - compile error: expected end of statement. What can I do to resolve this?

  • @ankitaagarwal6148
    @ankitaagarwal6148 ปีที่แล้ว

    Amazing !!! Thanks a ton.

  • @ronaldjolaton8905
    @ronaldjolaton8905 3 ปีที่แล้ว

    Thanks bro you deserve a sub very helpful

  • @rishabh5041
    @rishabh5041 2 ปีที่แล้ว

    Do i every time paste that code in excel or it will automatically save for future

  • @paulsanjaysurisetty8499
    @paulsanjaysurisetty8499 3 ปีที่แล้ว

    Thank Bro..., you are lifesaver

  • @kristykarlin6804
    @kristykarlin6804 3 ปีที่แล้ว +1

    Thank you so so much! It's helped me :)

  • @mechimansilla
    @mechimansilla 4 ปีที่แล้ว

    can this be done with numbers?

  • @The_Word86
    @The_Word86 ปีที่แล้ว

    Hi Sumit,
    If I wanted to take data from 1 tab and split it into individual files based on say different data in each cell
    So example if I have a list of groceries with prices all in one tab. Can I save individual files by category of groceries ?

    • @saumitra45
      @saumitra45 ปีที่แล้ว

      im looking for same thing, did u find it?

  • @danishdani21
    @danishdani21 4 ปีที่แล้ว

    thank you for helping but problem is that if some workbook is hide this VB is not working, please help

  • @nikolayvoznyak84
    @nikolayvoznyak84 5 ปีที่แล้ว +1

    Thank you! Can we do the opposite using VBA: combine a few workbooks into one? Please advise.