Excel VBA Macro Save .xlsm File to Specific Location as .xlsx | File Name Based on Cell Values

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

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

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

    I wish your channel was available back when... Your step bby step explanations are brilliant! Thank You

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

    Chester, I can't tell you how long I've been looking for this solution. And how you don't already have a million subs I just don't know but iam sure you ll get there soon with videos like these. Thank you so much for the great explanation and video...keep it up.

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

    Great one Chester! I created a macro similar to this to save a copy / paste values version of my .xlsm as .xlsx to send to clients, so they don't have control of my live workbook. Very handy and useful. Thanks for sharing. Thumbs up!!

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

    Great content, easy step-by-step instructions.

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

    Wowww. Great video Chester. Thank you for the detailed explanation!

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

    Very easy to follow and comprehend your explanation. Thank you very much.

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

    It's easy to follow and your explanation is very clear. Subscribed~

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

    thank you Chester for the steps by steps guide. :)

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

    Chester, you are the best👍👍🌹🌹

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

    Thank you. You helped me to do my first macro. And is working :)

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

    Very Helpful Exercise... Thanks..

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

    Excellent Video ....😊

  • @RobertMcDougall-x4u
    @RobertMcDougall-x4u ปีที่แล้ว

    This was so helpful! Thank you!

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

    Excellent video, thanks a lot!

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

    Thanks , it was an educational video. 🙏

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

    Hi Chester. This is a brilliant video. Is there away to do one button to save as .xlsx and pdf at the same time.

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

    Am able to make a copy but get Run-Time Error 1004 "The file could not be accessed" . Debug highlights the following:
    .SaveAs Filename:=path & fname, FileFormat:=51
    Trying to save in documents folder for testing.

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

    Great Explanation !
    also, can we retrieve data from add record sheet to main invoice sheet ?

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

    Awesome! Thank you!

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

    This is a brilliant video @Chester Tugwell thank you for making this available for us. Can we save files to google drive folder destinations?

  • @SB-od9sl
    @SB-od9sl 2 ปีที่แล้ว +1

    Hi Chester.
    I need one help this please.
    First of all this is a great tutorial. This helped me in my project. However, i have a question.
    I need the macro to select two specific sheets from the original workbook and copy it over to the new one.
    This video only tells us about copying one sheet.
    Can you please tell me how to copy over two sheets?

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

      hi SB. I am wondering if you have found the solution? If you have, please share. Thanks

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

    thanks. everything works but it doesn't add the file extension. Records come as files only. Why?

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

    Well done Chester, great vid. How would i go about inserting a date that has been formulated =IF(C5="","",(B5)) and the cell formatted to show "01/02/24" to replace an invoice number? i have attempted as per your instructions but instead of the date i am getting 45323. Thank you.

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

    I have used your instructions. It works well. I save it as a .xltm file, because I need it use it again and again for new costing. But only problem is when I open that .xltm file it's open with saved name. Only invoice number changed. I don’t know I made a mistake. Please advise me how to save .xltm sheet in a specific location with a name and invoice number as a .xlsm file. But original .xltm file have to open as fresh file to reenter new data and save. Thank you.

  • @GloryNails-d7w
    @GloryNails-d7w ปีที่แล้ว

    Hi Chester. How if i want add code sheet1 copy and pastevalue after auto save as a new workbook ?

  • @martinargimon730
    @martinargimon730 3 วันที่ผ่านมา

    HI Chester. I have some trouble including in my path the date of my invoice.
    In other words I wnat to save the Invoice number followed by the date, but i do not seem to get the correct syntax when I tell PDF writer to get the date from my cell.
    I know that i can use the 'Format' function for the date and it will work. But I do not want this. I rather will have the date saved in a variable and then use the value stored in the date variable to include in my path.
    i want to do this since I want to use the date variable for other sub-routines that i want to run.
    Any suggestion on the correct syntax that the PDF writer will allow.?
    Tahnks
    martin (South africa)

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

    Hi Chester. This is a really a great tutorial. I have a query. Rather than copy one sheet to the newly created workbook. If I have two worksheets from the original workbook to be copied over to the new one, I am wondering how to revise the VBA code to do that. Thank you.

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

      Sheets(Array("Sheet1", "Sheet2", "Sheet3", "Sheet4")).Copy
      Just fill in the "Sheet1", "Sheet2", etc with your Sheet Name

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

    Another great video with detailed explanation 👌.
    One question i.e. what if i want to save the newly created invoice in same folder where master invoice file is placed. Please guide.
    Thanks

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

    possible to do this in Mac excel?

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

    hi chester, what about the vba code for saving Word.doc and docx (some people use the older version) or even a .jpg in a specific folder. And save it as the ID # of that specific student. thanks for your help and of course pull it up from a command button-VBA and and changes on that Word doc should also be saved on the same folder with the same ID #. I am using a Userform.

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

    Great !!! Thank you !!!

  • @JohnLove-mv9ql
    @JohnLove-mv9ql 7 หลายเดือนก่อน

    if i run it from the code it works a treat, but cannot get the button to work ........... any ideas please

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

    Sir,
    I have a question.
    When I saveAs file as macro enable using vba. Why the button doesn't work in new workbook?
    Why the module not transfered there?
    Thank you.

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

    Wow amazing video, anyone any idea of how I add other sheets, this works perfectly but now I made a few new sheets in the original document but they are not being copied

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

    How can I run the macro to simply open the 'save as' option where I can rename and specify the file type? Same with the PDF function. I am totally illiterate when it comes to excel and getting so frustrated trying to figure out codes. can anyone help

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

    I have followed your steps and got the automated invoice I wanted, thank you so much, however I have 1 probem with it - When I save the files the code is deleting the buttons as I wanted but it is also deleting the Logo, I have tried it as a Jpg, Ico, Gif. Png and pspimage yet every time I run the code it deletes the Logo What am I doing wrong, I have been trying to nut out the problem for 2 days wth no success. The odd part is I had icons remaing when I locked the icon to the shape.
    Any suggestions will be appreciated
    Thanks
    I like your version of Excel for dummies like me.

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

      If you are having trouble with your logo being deleted use this code in place of the loop I demonstrate in the video:
      For Each shp In ActiveSheet.Shapes
      If shp.Type msoPicture Then shp.Delete
      Next shp

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

      @@ChesterTugwell OMG thank you Chester,your bloods worth bottling, that worked thank you so much

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

    Great sir

  • @sujith.srinivas
    @sujith.srinivas 2 ปีที่แล้ว

    Waw

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

    ❤👍