How to Create a Reset\Clear Form Button (Worksheet) VBA Microsoft Excel 2010/2007

Поделиться
HTML-код
  • Опубликовано: 21 мар 2013
  • Handy Excel Resources
    amzn.to/3gFx7s1 - Excel Formulas & Functions For Dummies 5th Edition
    amzn.to/3sYnuH6 - Microsoft Excel 2019 VBA and Macros
    amzn.to/2PqXhU0 - MICROSOFT EXCEL VBA AND MACROS FOR BEGINNERS:
    amzn.to/3xtsLtM - Microsoft Excel VBA Programming for the Absolute Beginner
    amzn.to/3xwkEg0 - Excel 2019 Bible
    amzn.to/3aJEHxW - EXCEL 2020 FOR BEGINNERS
    As an Amazon Associate, I earn from qualifying purchases. Product prices and availability are subject to change.
  • НаукаНаука

Комментарии • 82

  • @tarzroberts
    @tarzroberts 4 года назад +1

    Finally this works! I've watched so many videos about clearing contents and keeping formats. This is the only one that has worked in my sheet. Thanks heaps.

  • @leeannmarsh3359
    @leeannmarsh3359 6 лет назад

    Thank you! This was very easy to follow and works perfectly!

  • @davidscott9175
    @davidscott9175 2 года назад

    Beautifully done, so easy to follow!

  • @simonbeckett2112
    @simonbeckett2112 9 лет назад

    That just saved my day! Thank you

  • @alincalcity
    @alincalcity 8 лет назад

    I just used the info in this video for my excel sheet. Thanks for the video!

  • @freeman6147
    @freeman6147 5 лет назад

    Superb instruction. Thank you!

  • @LeilaMirza
    @LeilaMirza 9 лет назад +1

    Thanks, it was very easy to follow.

  • @angelguibao4232
    @angelguibao4232 Год назад

    Very Helpful and easy to understand! Thank you for sharing this

  • @lenebarnes
    @lenebarnes 5 лет назад

    Fantastic video! Thank you!

  • @megharaja.m4902
    @megharaja.m4902 6 лет назад

    Thanks for this Video, things got very easy! very useful.

  • @tofiq045
    @tofiq045 8 лет назад

    Yesssssss!!!!! Thank you!Thank you! Sir.

  • @Aqeelnk
    @Aqeelnk 4 года назад

    Thanks! You help me a lot!! 💜

  • @woody41165
    @woody41165 11 лет назад

    Excellent informative video, thank you very much for uploading.

  • @wilsononu2162
    @wilsononu2162 4 года назад

    You're a good man. Thanks

  • @juancastellanosjr9369
    @juancastellanosjr9369 8 лет назад

    Thank you, very informative video, worked perfect. I have one question though if I were to select multiple cells for a defined name, would this also work?

  • @Gulz211
    @Gulz211 9 лет назад

    Awesome! Thanks so much

  • @AsankeRaynayake
    @AsankeRaynayake 11 лет назад

    Great , Thanks !

  • @acmsuhailkadachira4498
    @acmsuhailkadachira4498 10 лет назад

    Thank you so much,,, i could do this,,,, love you dear,,,

  • @johnhingston9314
    @johnhingston9314 7 лет назад

    Very helpful! Thanks very much.
    One thing. How would I get my cell range to reset to the value of another cell on a different sheet? Due to other calculations in the document I need to cells to revert to a value currently on "sheet1" of my document whilst the "reset" button will be used on "sheet2".
    Any help much appreciated!

  • @SuperBenj1193
    @SuperBenj1193 10 лет назад

    Thank you very much, really helps a lot :)

  • @saiblounis8181
    @saiblounis8181 3 года назад

    thank you so much, this was helpful.

  • @warcraftiireplays7426
    @warcraftiireplays7426 8 лет назад

    very useful, thank you

  • @mariamamane9062
    @mariamamane9062 3 года назад

    Thanks you so much it was so easy with your explanation

  • @rajanzenqa8499
    @rajanzenqa8499 6 лет назад

    Thank You SO much :)

  • @arnnass85
    @arnnass85 2 года назад

    Thank you!!!

  • @thenestpodcast
    @thenestpodcast 4 года назад

    Thank you sir!

  • @JanisTreijs
    @JanisTreijs 9 лет назад

    Thanks, helped a lot ;) !

  • @brittanymaybeez
    @brittanymaybeez Год назад

    This was perfect!!!

  • @yonatanshenhav1208
    @yonatanshenhav1208 7 лет назад

    good video, thank you

  • @drajune
    @drajune 4 года назад

    Very helpful. Thanks.

  • @xilllllix
    @xilllllix 8 лет назад

    EZ-PZ... thanks, mate!

  • @tdutrisac
    @tdutrisac Год назад

    Thank you so much for this! When I use the command button, for some reason, I have to click it twice for it to work...why? I ended up just using a shape to make the button and it works perfectly. YAY!!!

  • @kimhill853
    @kimhill853 8 лет назад

    Awesome video

  • @metalslug26
    @metalslug26 4 года назад

    Thank you sir 🙏

  • @dhaaj
    @dhaaj 11 лет назад

    Thank you so much!!! Searched all over the internet to insert a reset button and couldn't find anything useful. Subbed!

  • @2fluffybunnies
    @2fluffybunnies 8 лет назад

    i followed your instructions and they work great!! Any chance you can add check boxes to my worksheet and also have them clear with the clear all button? Thank you.

  • @MrKrychaMr
    @MrKrychaMr 9 лет назад

    thanks

  • @seddiqgaafar6864
    @seddiqgaafar6864 5 лет назад

    it's good idea to explain how can you clear contents for merged cells
    thank you so much
    now :
    how can we design a button (NEW) in order to pressing it can save the data then rest the form

  • @Zeonyu3825
    @Zeonyu3825 10 месяцев назад

    Thanks bro

  • @BratvaTV
    @BratvaTV 5 лет назад

    Great video, thanks.
    Would have been nice if you mentinoed that if anybody didnt see the developer tab they could go in and unhide it. I thought I had an old version of Excel or something. lol Another video had to show me that and I came back.

  • @yogeshbhalla007
    @yogeshbhalla007 11 лет назад

    nice ...thnks :)

  • @hawkfu
    @hawkfu 10 месяцев назад

    Still works :)

  • @pcipci8771
    @pcipci8771 7 лет назад

    Very informative video, but how do you reset your Activex check boxes using the same reset form button

  • @annabellethomas1460
    @annabellethomas1460 7 лет назад

    Is there any chance you could do a video on how to create a process button? Thank you :)

  • @KaypainBeats
    @KaypainBeats 3 года назад

    nice tutorial. Is there a way to make the computer play a sound when you hit the button

  • @sebastiansiegmann8444
    @sebastiansiegmann8444 2 года назад

    Very nice! What i have to do if i want to reset 6 Sheets (1-6) at one click?

  • @mdr7283
    @mdr7283 10 лет назад

    is it possible to have a command button that will transfer the value from sheet 1 to sheet 2?, example once i click the command button the value from e7 will be transferred to sheet2 cell A1?

  • @danicalarah
    @danicalarah 8 лет назад +1

    I'm trying to reset cells which have Lists in them. How do write the codes in VBA to reset to that list?

  • @smithmtodd
    @smithmtodd 7 лет назад +3

    setting the value = to " " works, but I prefer this:
    Range("E7:E15").ClearContents

    • @justincourt668
      @justincourt668 6 лет назад

      but does this way clear the formulas? i have three columns using vlookup so this doesn't work in my sense. but the
      Range("E7:E15").ClearContents will it clear my formulas such as VLOOKUP

  • @jearrauansory9646
    @jearrauansory9646 3 года назад +1

    Helped alot, but how do i reset a cell without deliting a formula inside it? Thanx

  • @charrenclaire1984
    @charrenclaire1984 3 месяца назад

    How do you do the in Microsoft Word's VBA with clearing inserted bookmarks via a button from a user form?

  • @munchems
    @munchems 2 года назад +1

    Will this work with drop down lists?

  • @novarag
    @novarag 6 лет назад +1

    Unlikely I’ll get a reply but how would you set it to uncheck a box?

  • @jerrymerritt1367
    @jerrymerritt1367 5 лет назад

    I am having a hard time writing a save button macro for the data in a worksheet and saving it to different files based on the value in one cell. If the value changes it saves the data into another file. I have 23 different files the data could be saved to based on the value of that one cell

  • @johnw7018
    @johnw7018 10 лет назад +4

    How would you program the button to ask you
    "Are you Sure? Y/N "
    Before the thing clears the info????
    Thank you for your help good video

    • @DynePodadera
      @DynePodadera 10 лет назад

      I'm about to ask this. Hope you would give us the answer. Thanks in advance! ;)

    • @johnw7018
      @johnw7018 10 лет назад

      ask him... he doesn't answer me. IM not important

    • @alexcantu3
      @alexcantu3  10 лет назад +7

      John W Deyn2011
      You all are awesome. :) And if only you all knew how many e-mails and questions I get, it's way more work than a full-time job. :)
      I do have a video that addresses your question: Microsoft Excel VBA Message Box Parameters (MsgBox)
      Or if you still are looking for the code, try something like this:
      Response_Code = MsgBox("Are you Sure? Yes/No", vbYesNo + vbQuestion, "The Title of the Window")
      If Response_Code = vbYes Then
      'Put in the code here to clear the form
      '
      '
      'And then tell the user if you want. :)
      MsgBox "Ok, all done! Form Cleared"
      Else
      MsgBox "You didn't click Yes, so I am not doing anything!"
      End If
      CHEERS!
      -Alex

    • @Ramp10er
      @Ramp10er 8 лет назад

      +John W Type msgbox ("Are you sure?", vbyesno)

  • @nawarawara8708
    @nawarawara8708 8 лет назад

    How to create save button in excel ? thanks

  • @justincourt668
    @justincourt668 6 лет назад

    One issue... how do I have it clear my cells without removing my formulas or my VLOOKUP formulas

  • @gippsonindia3865
    @gippsonindia3865 7 лет назад

    i am unable to clear contents of merged cell using macro...
    please solve my problem

  • @manjulanavgire1850
    @manjulanavgire1850 6 лет назад

    How to remove that data entry tab from Excel sheet

  • @ceevb2085
    @ceevb2085 8 лет назад

    How do you create a VBA Copy button?

  • @CarlHarbaran
    @CarlHarbaran 7 лет назад

    I keep on getting error 9 Syntax?

  • @jillianfaye3087
    @jillianfaye3087 5 лет назад

    the code is Private Sub Command Button1_ Click ()
    Sheets ("Session 6"). Range ("Type your cell address here"). value = " "
    and just copy this again and again to other stuff you want to reset or clear

  • @fredrobrien
    @fredrobrien 6 лет назад

    I dont have a "Developer" tab in my
    excel 2007

    • @BhriguAneja
      @BhriguAneja 6 лет назад

      Go to File --> Options --> Cutomize Ribbons --> In the main tabs check "Developer"

  • @kimhill853
    @kimhill853 8 лет назад

    I know how busy you are but if you get a chance I cant find my answer on google. I followed your instructions above - see screen shot. I keep getting an error: Compile Error. Sub or Function not defined. The sheet name is PiggyBack. I only have one button on the page. It automatically filled in the name below CommandButton1. I cant figure out how to fix it. Thanks in advance.
    Private Sub CommandButton1_Click()
    Sheets("PiggyBack").Range("D5").Value = ""
    Sheets("PiggyBack").Range("D9") = ""
    Sheets("PiggyBack").Range("D20") = ""
    Sheets("PiggyBack").Range("L20") = ""
    Sheets("PiggyBack").Range("T20") = ""
    Sheets("PiggyBack").Range("AB20") = ""
    Sheets("PiggyBack").Range("AJ20") = ""
    MagBox "Form has been reset."
    End Sub

  • @OfficialZenTech
    @OfficialZenTech 10 лет назад

    Missing an equal (=) sign between Value and "1111111"

  • @bradcoutts8747
    @bradcoutts8747 Год назад

    I keep getting a syntax error. I can't get it to reset.

  • @MarcosoftProduction
    @MarcosoftProduction 11 лет назад

    Sheets("StationFam").Range("T2­2").Value = "1111111"

  • @monumentalbasser
    @monumentalbasser 4 года назад

    My guy...would it really be so hard to drop the code into the description for copy/pasting purposes?

  • @carlosarturocasashuaman4255
    @carlosarturocasashuaman4255 3 года назад

    so bad

  • @manjulanavgire1850
    @manjulanavgire1850 6 лет назад

    How to remove that data entry tab from Excel sheet

  • @manjulanavgire1850
    @manjulanavgire1850 6 лет назад

    How to remove that data entry tab from Excel sheet

    • @justincourt668
      @justincourt668 6 лет назад

      if you mean a drop down menu box that was selected through data validation.
      then you click the cell thats using data validation drop down and select it back to any value and click ok.