Excel VBA - If Else Using For Loop

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

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

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

    Get Certified in Excel VBA:bit.ly/41fWeVP
    Use coupon "RUclips12" to get ‘’FLAT 12%’’ OFF at Checkout.

  • @pankajjha750
    @pankajjha750 5 лет назад +2

    Thanku so much such aapki bajah se me VBA me Zero se Hero ho gaya..😎😊
    Muje aapki video itni pasand aayi ki
    Mene Poori 100 Video dekhi 1 day me
    Thanku again sir..and love you so much..😍😘

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

    the confidence in this man is un matched

  • @poojakorde3287
    @poojakorde3287 5 лет назад +1

    Your videos support us for our exam. ....Thank you so much Sir

  • @jontykmc893
    @jontykmc893 6 лет назад +3

    Very well explained...Please do more videos...

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

    Wah sr.....u r a brilliant person

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

    U did make my day much better, thank you

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

    Very helpful sir..... thanks 🙏

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

    thank you very much! , Your videos help me a lot!

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

    thank you, very usefull for one of my requirement today.

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

    Excellent Bro ❣️💕❣️

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

    Very good video and neatly understand

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

    I am struggling and hoping you can assist me. I am trying to loop the VBA code below. I want it to continue till from row 4 to row 4000 (large document).... How can I do that?
    Sub RunSUMTotals()
    '
    ' RunSUMTotals Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+R
    '
    Range("B4").Select
    Selection.End(xlDown).Select
    Selection.AutoFill Destination:=Range("B12:E12"), Type:=xlFillDefault
    Range("B12:E12").Select
    Range("B13").Select
    Selection.AutoFill Destination:=Range("B13:E13"), Type:=xlFillDefault
    Selection.End(xlDown).Select
    Selection.End(xlDown).Select
    Selection.AutoFill Destination:=Range("B22:E22"), Type:=xlFillDefault
    Range("B22:E22").Select
    Range("B23").Select
    Selection.AutoFill Destination:=Range("B23:E23"), Type:=xlFillDefault
    Range("B23:E23").Select


    End Sub

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

    I like u r tutorial sr......Thank u sr

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

    sir what if we have percentage instead of num then will it work

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

    Thank you, helped me see where my syntax was off

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

    knowledgeable and intersting classes

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

    How can I make it automatic meaning every time I open excel and enter a value it automatically detect and assign the number without the need for me to run VBA code all over again?

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

    Loop should not be repetitive on same data transfer to sheet 2,3,4 in my own example etc., even in any number of times if run it pl tell me what is the code to insert - only top data to retrive

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

    Sir I have an Query Plz help me for my query

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

    nice 👍👍👍👍

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

    Why we have added ' Next x' in the last?

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

    kya aur bhi for loop ke example h aapke pass ?

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

    Sir, help me how to create Input data button example: I want to show data on these cells A1:A50 and have 3 input A B C button.
    1. I click on A button will show on A1 cell.
    2. I click on B button will show on A2 cell.
    3. I also click on C button will show on A3 cell and continue down until end A50
    Help me, please. Thanks

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

    Excellent sir very good

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

    Can I nest two for loops?

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

    Well done!

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

    that ten foot screen is boss!

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

    Very helpful thanks sir

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

    Can u teach how to calculate percentage of given amount, like my amount in text box1 is 100 and discount rate in text box 2 is 5% , text box 3 will show the value of 5% & text box 4 will deduct the 5% or value from textbox1. Can u guide and provide the code

  • @MithileshKumar-vi4eg
    @MithileshKumar-vi4eg 4 года назад

    How can make class and roll no wise search button in excel VBA user form. Please make a video on this Sir.

  • @heitorp.c.1327
    @heitorp.c.1327 6 лет назад

    WONDERFUL!!!

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

    Please create video on dynamic range selection

  • @61lord
    @61lord 4 года назад

    How to compare a cell in 1st sheet to 3rd sheet using this method

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

    Have a doubt if we don't know how many students are there ..then which code we can use for that.for pass and fail for many students

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

    good explain.

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

    Thank you, sir!

  • @NishantSingh-qf4bf
    @NishantSingh-qf4bf 4 года назад +1

    Sir plese show the module no. Also

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

    good video

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

    If we don't know the number of last row?

    • @Nileshkumar-ks9tw
      @Nileshkumar-ks9tw 5 лет назад

      same issue, Can you please write a code for multiple range

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

      Dim vCl As Range
      Dim vRng As Range
      Set vRng = Range("A1", Range("A1").End(xlDown))
      For Each vCl In vRng
      If vCl.Value < 100 Then
      vCl.Interior.Color = vbYellow
      End If
      Next vCl
      Ref: uniqueexcelvba.blogspot.com/p/loop.html

  • @travel_diary.
    @travel_diary. 4 года назад

    getting compile error "else without if"

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

    helpfull

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

    Sum range different values

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

    bhai mere me exicute nahi ho raha

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

    Thanks

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

    Sten