Excel VBA - Clear Invoice and Automate Next Invoice Number

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

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

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

    your videos are not getting enough recognition! I know nothing about VBA and I am learning so much

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

    This guy. This guy is the bee's knees. I hope the world is one day full of people as kind as him.

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

    *****If you are having trouble with your logo being deleted use this code:*****
    For Each shp In ActiveSheet.Shapes
    If shp.Type msoPicture Then shp.Delete
    Next shp

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

    Becoming more familiar. I'm playingyour videos over and over, stopping and starting... So useful. I'm doing this instead of paying for an invoice app. Using a lot of grey matter but even I csn understand. Thank you so much!

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

      Sarah, hope you get your head around it and save yourself pennies on an invoice app. Thanks for your comment.

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

    Thanks for your tutorial it has been amazing as I am just starting out in my business, it has helped me alot I can not imagine now not using this excel spreedsheet

  • @DraganTanevski-bq2uf
    @DraganTanevski-bq2uf 5 หลายเดือนก่อน

    It works perfect. Thank you. Question - how to make next invoice number to have leading zero in front of the invoice number?

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

    excellent work and very helpful. you are an amazing source of information and help. thanks so much!!!

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

    this video is so useful to make an automatice invoice.

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

    Best explanation by far for us totally new to the software, thanks for your ti man, really looking forward to learning how to make so

    • @Info-God
      @Info-God ปีที่แล้ว

      You will be in dis-belief what VBA-Excel can do. I'm advsbced/expert and I am just thrilled of what I did. No other software can do such amazing things (of course C, C++ are at the core of everything but it takes huge time, many people and organization to create a tool like MS Excel).

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

    A great video! Thank you!
    What if there is no email. how to clear return value and make the cell blank?

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

    Thank you for this amazing explanation. When I run this it says "Compile error: Invalid use of property" and highlights the first line which is "sub CreateNewInvoice()". How can I fix this? Thank you in advance

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

    beautiful video
    hopefully you can help
    If I have a large order with more than a hundred different items, how should I add the line with s/n product description, QTY, unit price at the top of page 2 of the invoice? Is there a way for this to happen automatically?

  • @Alan-1970
    @Alan-1970 2 หลายเดือนก่อน

    Love your videos! They have been extremely helpful! But I'm having a problem with the "Create New Invoice" and the new invoice number, I've followed your video, but when it creates a new invoice it is creating invoice number 1 over and over. If my first invoice is 10001 the next invoice should be 10002, but it changes it to 1 each time I hit the Create New Invoice macro, I can't figure it out?

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

    Hi there! I'm a newbie and I'm trying to use python and it's libraries as my go-to. I was wondering if you had any documentation for this or any of your other videos in this playlist? I really appreciated the vid so thank you!

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

    Hi Chester! This video has helped me a lot! Only one issue, my invoice number does change when I click the macro button, but the message box always says "your next invoice is 1" haha. Please help me with this issue! Love your videos by the way!

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

      same have you sorted it?

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

    Excellent...
    I successfully made an auto receipt number for my form through your tutorial. If I have any problem in VBA can you help me?
    Thanks

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

    Thanks for the great content. I’m wondering how to avoid the problem of starting the new invoice without ripping out of the formulae? I mean the sum function in the description box. Thanks!

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

      Thats happening to me also. I tried different clearxxx but it deletes everything or nothing

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

      Try not including the column with the formula (such as the VLOOKUP one, e.g) in the ClearContents command, just clear Column B or whatever column the formula refers to.

    • @Alan-1970
      @Alan-1970 2 หลายเดือนก่อน

      @@7073cain Exactly! I found this out the hard way. I originally put all my columns to cleat content and it deleted all my formulas. I'm pulling all my info from a price sheet using part numbers. If you just clear the part number column then it will clear your invoice without messing with your formulas

  • @Prasad-q5x
    @Prasad-q5x 2 ปีที่แล้ว

    Dear sir.... thank you so much for your beautiful and sophisticated method of building the invoice but I have a requirement. After pressing the "Start New Inv" button, that button will be hidden or not operate until the next session. what is the procedure?.please make a video sir on that topic.

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

    Dear Mr Chester Tugwell thank you so much for such a informative video . I replicated your sheet and I am having problem when i do clear invoice contents. When i do ".clearcontents", the formulae in the invoice sheet disappear. The sum formulae i mean. For every new invoice , i have to put sum formulae manually. Please help me in automate my sheet. I would be very thankful to you.

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

      Hi, need help. Did you find a solution to your issue? I have been facing the same issue

  • @ImranKhan-qw7ge
    @ImranKhan-qw7ge 2 ปีที่แล้ว

    Thanks Chester, I would like to add the Service Usage & Discount History Graphical View to the Invoice with Recurring Invoicing System can you please share a video linking the same to the Invoice

  • @catcharella1961
    @catcharella1961 24 วันที่ผ่านมา

    this has made me feel like I know what I'm doing when using excel, even though I have no clue!! Thanks. HOWEVER I am having difficulty when I do clear invoice contents the ".clearcontents" clears the quantity and unit price numbers aswell as the formulas and I have to reinstate formulas every new invoice. what is the code to just clear the numerical entries and not the formula sums???? PLEASE HELP!!!

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

    Thanks again, Chester! Great tutorial!

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

    Thank You Very Much! Learned and Applied... God Bless!

  • @MarkBlakeman-mt8mb
    @MarkBlakeman-mt8mb ปีที่แล้ว

    your videos are excellent- on the create new invoice button when it opens and new invoice the customer name disappears but the remainder of their details turns to a date and i cant work out why despite trying the IFNA function can you help

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

    Thank you for the videos. It's priceless! Quick question I am getting an error "We can't do that to a merged call." There could be a work around but I am concerned how it will affect the previous settings.
    Thank you.

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

      Make sure all the columns are included in the Macro line where you did the ClearContents. For example, My merged cell spanned columns A to D, instead of A to C so error was fixed when I made that change.

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

    it is great series >>>Thanks

  • @abidj.guerrero1992
    @abidj.guerrero1992 6 หลายเดือนก่อน

    A perfect work, you rock! Thanks man.

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

    is there a way to have a dropdown text on the list like "Select an option" when it is empty?

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

    Great Chester, I am following your video and practicing but I am facing problem at "StartNewInvoice()" VBA Code, against a cell associated with Customer Name. where it says "we can't do that to merged cell" Runtime error 1004.
    Request your advice

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

    I love your videos, and I'm learning a lot, but when I make the next invoice number module code, and try to run it, it gives me an error, telling me that can't be done because cells are merged
    What do I do? Please help

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

    Great! Thanks Chester. Thumbs up!!

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

    what if you accidently click button and add same record 2-3 times, is there a logic that can prevent you from adding duplicated records?

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

    This is exactly what I have been looking for. Can I purchase this template from you?

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

    Really helpful
    please add feature in which we can maintain and delete the records as well customer wise

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

    i need help doing this with merged cells without losing my formulas or data validations

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

    is there a way to generate an invoice with sequential numbers for all the customers at the same time? like monthly group invoices - I'm trying to avoid doing one customer at a time :D

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

    Could please help me on the range to clear when opening a new invoice, for mine it’s showing as we can’t do clear content for merged cell 😢

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

    Hi. Thank you so much for these videos. But I'm having an issue. When i play it, it keeps telling me
    Run-time error '1004':
    We can't do that too a merged cell.
    When i click debug it referenced the clear contents line. Please help 😢

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

      Have you happened to figure out a solution for this? I am getting the same error..

    • @harrydhinjan7446
      @harrydhinjan7446 21 วันที่ผ่านมา

      Hi did you find any solution for this i am also getting the same error

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

    Hi Chester! I am stuck in IFNA function (6:49) of this video. Not sure why it doesn't work - an error message #NAME? pops up and cannot carry on! Please help!

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

    Thank you so much sir
    🔥🔥🔥

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

    Hi ... new to modules ... when I insert for Module 2, the visual basic for module 1 disappears...eek...what have i done? Also new to youtube...lol...wondering how I'll know if you answer...oh dear...not my night

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

    dear @ChesterTugwell sir, my invoice number is showing only 1 after running vba, rest everything is fine. Please help

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

    How do you increment an alphanumerical invoice number?

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

    It is possible to create an alphanumeric digit/Number.please

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

    I'm having a problem with its saying it can't do it to a merged cell. Is there a way to fix this?

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

    Sir please help me...
    I was try taxable invoice for Grocery shop......
    If I was make invoice and click button "Go" , save this in invoice move in second sheet automatically after click button.........
    How to possible this macro.........I need invoice sheet invoice number wise set..........

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

    Great! Thanks a lot mate‘

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

    Thank you for this ❤️

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

    Hi, my invoice has a letter in the front and then a number, how do i write a macro to keep the letter but change the number only...thank you

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

    If i want to add some alphabate in my invoice no. like, GHH/2023-24/005 and next invoice like , GHH/2023-24/006 and next is , GHH/2023-24/007 . Mean i want to increage only last digite of my Number . So what code I have to right ? Reply in comment.

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

      I have the same issue here

    • @SaberSediqi-z8e
      @SaberSediqi-z8e 11 หลายเดือนก่อน

      Did you find the solution?

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

    fabulous

  • @harrydhinjan7446
    @harrydhinjan7446 22 วันที่ผ่านมา

    Hi im getting this error
    Run-time error '1004':
    we can't do that to a merge cell.

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

    Hello Sir I am using this formula =IFNA(VLOOKUP($B$9,Cust_list,2,0),"") but it is coming #Name?. How to solve this

  • @DM.10
    @DM.10 ปีที่แล้ว

    Please help. I mean how should I add a new invoice number if it looks like this: NPJ/001/2023. I want to add 1 which is NPJ/002/2023???? Please reply. 🙏

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

    When I use your formula to clear the #N/A in B10, it gives me #NAME? It doesn't clear the cell like in your video. Any help or suggestions would be appreciated. Thank you.

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

    Somehow the (Save as PDF, and Save as .xlsx) doesn't work in my macbook.

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

    How to use multiple VLOOK multiple time in a cell, Like City,provine, postal code

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

    Oh no that clearContent erased all formulas that i had done and saved it, there was no undo option. I'm using excel 2007

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

    HELP, please help me. I created my boss a template that increments the invoice number by watching your video but he/we mistakenly hit "security warning macros have been disabled, enable content" at the top of one of the invoices we were working on and now for the life of me, i can not figure out how to fix it. I went to options and trust then macros and disable w/VBA notifications also tried w/o but neither worked. What am I doing wrong???

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

    How to add a alphabet before the invoice number?

  • @Tate.Central
    @Tate.Central 2 ปีที่แล้ว

    Fantastic! amazing
    can you make a video on creating a unique customer ID that is alphanumerical. which can be used as a invoice number which increment by 1 in sequence every times we process the invoices for the particular customer

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

    guys get this message when i run it
    Run-tim error '1004':
    we can't do that to a merge cell.
    how can i fix this?

    • @harrydhinjan7446
      @harrydhinjan7446 21 วันที่ผ่านมา

      hi did you find any solution im also getting same error because i wanna use merged cells in my sheet.

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

    i found your valuable video and i learned a lot from it. Thank you so much

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

    Im stuck on the clear contents part.

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

    Want Alphanumeric Serial
    SHP/22-23/0001
    SHP/22-23/0002
    Only serial no. Has to change in this context
    How to do this is that possible. . ???

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

    ❤❤

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

    2 questions from my side.
    When you save to excel, is there a way to keep a button? I would like to keep the save to PDF button on the save to excel version, as I would like to still modify the quotation and then save the final as PDF.
    second question
    I have the following, which keeps my logo and removed the buttons when you save, but I inserted my banking details at the bottom in a shape box and I tried adding a png at the bottom, but when I save it as excel, it removed the bottom part, this, however, doesn't happen when I save to pdf, it retains the detail at the bottom
    Dim shp As Shape
    For Each shp In ActiveSheet.Shapes
    If shp.Type msoPicture Then shp.Delete 'This line is modified so that is doesn't delete the logo
    Next shp