Excel VBA Forms Part 9 - Spin Buttons

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 22

  • @ricardosantos7884
    @ricardosantos7884 8 років тому

    Amazing !!!
    Thank you for these series about forms, Andrew !!!
    I've been learned a lot !!!

  • @krn14242
    @krn14242 8 років тому

    Thanks... loved the progress bar example.

  • @nuhzakir8896
    @nuhzakir8896 8 років тому

    End of the video was great.Thank you.

  • @edrianmanuel6527
    @edrianmanuel6527 8 років тому

    More Power WiseOwl Thanks for TUT 5 star for this !

    • @edrianmanuel6527
      @edrianmanuel6527 8 років тому

      +WiseOwlTutorials for next tutorials can you make your voice volume up pls. ☺TIA

    • @edrianmanuel6527
      @edrianmanuel6527 8 років тому

      +WiseOwlTutorials for next tutorials can you make your voice volume up pls. ☺TIA

  • @victoropere2107
    @victoropere2107 6 років тому +1

    best tutorials ever

  • @kumar-manoj
    @kumar-manoj 3 роки тому +1

    Great video sir, thank you so much 🙏

  • @divyal5852
    @divyal5852 8 років тому

    Loved it, Andrew!!!

  • @stephenhammond1745
    @stephenhammond1745 9 місяців тому

    Just watching this video playlist now. Very helpful. One issue I found with using the textbox_change event to synchronize the spinbutton is that in entering a number in the valid range you can enter invalid numbers. Eg. If my spinbutton range is 10 to 100, then when I try to enter a number like 20, as soon as I type the first digit 2, I get the 'out of range' error message. This is because the change event fires every time anything is typed into the textbox and 2 is less than the minimum value. Is there a way to stop this other than using some other event like Exit or AfterUpdate?

    • @WiseOwlTutorials
      @WiseOwlTutorials  9 місяців тому

      Hi! I'd use a different event as you suggest, or just lock the text box so it can't be typed into!

    • @stephenhammond1745
      @stephenhammond1745 9 місяців тому +1

      @@WiseOwlTutorials I used the exit event. I just don't know whether there is some drawback to using that. Anyway, not a major issue...I just populate the spinbutton values using a different method that doesn't involve changing the range.

    • @WiseOwlTutorials
      @WiseOwlTutorials  9 місяців тому

      @@stephenhammond1745 I can't think of any drawback - it sounds like a sensible option to me!

    • @stephenhammond1745
      @stephenhammond1745 9 місяців тому

      @@WiseOwlTutorials Ok. Thanks. One last question if I may. I have a loop where I need to go one row down and one column over from a anchor cell. I do this with Offset. I then need to select and total the column I've selected. So, code looks like:
      Range("a1").offset(1,1) , Range("a1").offset(1,1).end(xldown)... hope I didn't make any typos. I'm trying to give that as an argument to the SUM() function but keep getting syntax error (I think because of the embedded ",".) Is there some way this could work? I get around it by setting a Range variable and using that in the SUM ()function. Hope this is clear. Thanks

    • @WiseOwlTutorials
      @WiseOwlTutorials  9 місяців тому

      @@stephenhammond1745 Hi! Sure, just put the same code you use to populate the range variable into the sum function, this works:
      Debug.Print WorksheetFunction.Sum(Range(Range("A1").Offset(1, 1), Range("A1").Offset(1, 1).End(xlDown)))
      Hope it helps!