Excel VBA - If Else Using For Loop

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

КОМЕНТАРІ • 48

  • @TutorialsPoint_
    @TutorialsPoint_  Рік тому

    Get Certified in Excel VBA:bit.ly/41fWeVP
    Use coupon "UA-cam12" 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

  • @alejandroauqui2376
    @alejandroauqui2376 4 роки тому

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

  • @Humayun831
    @Humayun831 Рік тому

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

  • @SuperStreet36
    @SuperStreet36 3 роки тому

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

  • @radhikabhat9480
    @radhikabhat9480 4 роки тому

    Can I nest two for loops?

  • @ashokgurhekar5189
    @ashokgurhekar5189 4 роки тому

    Very helpful sir..... thanks 🙏

  • @nikolasfrygoudakis3815
    @nikolasfrygoudakis3815 3 роки тому

    U did make my day much better, thank you

  • @vishalpanchal8274
    @vishalpanchal8274 4 роки тому

    kya aur bhi for loop ke example h aapke pass ?

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

    Thank you, helped me see where my syntax was off

  • @UniiversalWiisdom
    @UniiversalWiisdom 4 роки тому

    Excellent Bro ❣️💕❣️

  • @ChachujeeHomeo
    @ChachujeeHomeo 5 років тому

    Sir I have an Query Plz help me for my query

  • @sK_YasH_7773
    @sK_YasH_7773 5 років тому

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

  • @sakshiagarwal8610
    @sakshiagarwal8610 3 роки тому

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

  • @asadost258
    @asadost258 6 років тому

    Very good video and neatly understand

  • @Swapnil0383
    @Swapnil0383 5 років тому

    Please create video on dynamic range selection

  • @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

  • @vivekasharma3011
    @vivekasharma3011 6 років тому

    knowledgeable and intersting classes

  • @61lord
    @61lord 4 роки тому

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

  • @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?

  • @NishantSingh-qf4bf
    @NishantSingh-qf4bf 3 роки тому +1

    Sir plese show the module no. Also

  • @sundramprajapati8551
    @sundramprajapati8551 6 років тому

    Excellent sir very good

  • @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

  • @vijaysahal4556
    @vijaysahal4556 4 роки тому

    nice 👍👍👍👍

  • @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.

  • @woolysamoan
    @woolysamoan 4 роки тому

    that ten foot screen is boss!

  • @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

  • @sagarmandlik8013
    @sagarmandlik8013 5 років тому

    Very helpful thanks sir

  • @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

  • @asadost258
    @asadost258 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

  • @adadmohamedcherif192
    @adadmohamedcherif192 5 років тому

    Well done!

  • @travel_diary.
    @travel_diary. 4 роки тому

    getting compile error "else without if"

  • @SalesforceTeacher
    @SalesforceTeacher 5 років тому

    good explain.

  • @jaswantdn7
    @jaswantdn7 6 років тому

    good video

  • @thenighttinker5158
    @thenighttinker5158 5 років тому

    bhai mere me exicute nahi ho raha

  • @abdulqadirsial1052
    @abdulqadirsial1052 5 років тому

    Sum range different values

  • @heitorp.c.1327
    @heitorp.c.1327 5 років тому

    WONDERFUL!!!

  • @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

  • @mivedi
    @mivedi 5 років тому

    Thanks

  • @aveu1318
    @aveu1318 4 роки тому

    helpfull

  • @igorvenancio5899
    @igorvenancio5899 5 років тому

    Thank you, sir!

  • @rockygaming2842
    @rockygaming2842 2 роки тому

    Sten