Free Excel VBA Course #26 - Using Arrays in VBA

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

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

  • @nisarshaikh
    @nisarshaikh 2 года назад +5

    You have greatest teaching skills...amazing and biggest thing is you giving it FREE of cost.
    stay healthy,stay happy

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

      yes…its really helpful

  • @dominicreevantopno6514
    @dominicreevantopno6514 3 года назад +3

    Amazingly beautiful language in which you explained the Array with perfect clarity... thanks!

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

    Best video I've viewed explaining Excel VBA Arrays. Thanks for including the Excel file.

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

    Awesome explanation of array. You made it simple to understand. Thanks a lot.

  • @luislopez-g2k
    @luislopez-g2k Год назад +1

    Very well explained and great examples. This man is a genius and a great teacher

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

      Thank you so much for the kind words 🙏

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

    Excellent Tutorial! Thank you.

  • @Aula-hd7dv
    @Aula-hd7dv 3 года назад +1

    This video is super useful, I appreciate it very much, keep doing these videos.
    Thank you.

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

      Glad the video helped :)

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

    beautifully explained....I was in search of such specific video on arrays. Thanks..

  • @68team
    @68team 2 года назад

    A lot thankyou, Now have no doubt in array ✅

  • @mtotowamungu8259
    @mtotowamungu8259 4 года назад +2

    Very well explained, thank you very much.

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

      Glad you found the video useful!

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

    Thankyou sir for this detailed video of using arrays in vba.

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

    This helped me greatly with my understanding of arrays. Thank you.

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

    Thank you bro. Very clear and concise the way you explained. I had an issue which you just resolved! I have Subscribed

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

    god bless you man
    💕

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

    Thank you Sumit for detailed information.;

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

    Really very nice video

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

    nicely done!

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

    From my understanding at approx 7:00 the best practice is to Erase CompanyName i.e. erase the array variable. Erase acts much like Unload Me.. although, it may not be a big deal, it's supposed to release memory. Thank you for the tutorial!

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

    Stay blessed sir

  • @margad-erdeneboldbaatar4704
    @margad-erdeneboldbaatar4704 2 года назад

    Thanks so much.

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

    Hello sumit.. i am your no. 1 fan, can you make tutorial of the difference between Row, Rows, column, columns, Cell, Cells, worksheet, worksheets. etc .. thanks you so much

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

    Very good video. Thank You.

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

    Excellent Video

  • @kartickchakraborty9135
    @kartickchakraborty9135 5 дней назад

    Your explanation is superb. No one can explain these topics so easily. I've recently come across this problem. Sir, would you kindly please make a video on this topic - "How to split Strings that contain no Delimiter using User Defined Function in Excel VBA?" For Example, - You have some client names on your Sheet1 from Range("A2") to Range("A16"):
    Raw Data:
    ========
    Names First Names | Middle Names | Last Names
    ------------ -------------------- ------------------------ --------------------
    AlexanderWilliamJamesBrown
    AmandaTaylor
    AriaNguyen
    AubreyFoster
    AveryAnnPhillips
    Beerus
    BenjaminThomasHarris
    CharlotteMitchell
    ChristopherJackson
    DanielJamesMiller
    DavidAndrewJohnWilliams
    Dende
    DylanJamesWard
    ElijahWatson
    EllaSophiaRoberts
    ==========
    Here, some clients have First Names, Middle Names and Last Names (For Example: Alexander William James Brown etc.); some have First Names and Last Names (For Example: Amanda Taylor etc.) and some have only First Names (For Example: Beerus etc.). Now, I want to delimitate each name based on the Capital Letter. Desired Output mentioned below:
    Desired Output:
    =============
    Names First Names | Middle Names | Last Names
    ------------ -------------------- ------------------------ --------------------
    AlexanderWilliamJamesBrown Alexander | William James | Brown
    AmandaTaylor Amanda | | Taylor
    AriaNguyen Aria | | Nguyen
    AubreyFoster Aubrey | | Foster
    AveryAnnPhillips Avery | Ann | Phillips
    Beerus Beerus
    BenjaminThomasHarris Benjamin | Thomas | Harris
    CharlotteMitchell Charlotte | | Mitchell
    ChristopherJackson Christopher | | Jackson
    DanielJamesMiller Daniel | James | Miller
    DavidAndrewJohnWilliams David | Andrew John | Williams
    Dende Dende
    DylanJamesWard Dylan | James | Ward
    ElijahWatson Elijah | | Watson
    EllaSophiaRoberts Ella | Sophia | Roberts
    Thank you, Sir, for uploading the video on my request. A few years ago, I commented this question to you. Y

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

    Nice video

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

    Hi great videos and crystal clear
    Could please 🙏 solve the this error
    Dim j as variant,
    J= Array(cells(1, 10), cells(1, 20)).
    When watch this code in local window getting typescript error could please help me out of error.

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

    Thanx

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

    Thanks Sumit. This is awesome! I have a question though. You used two separate loops. One for reading the data from the sheet and another for writing the data to a different area. Couldn't you have done both in the same loop?

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

      i know I'm quite randomly asking but do anybody know of a good place to watch new tv shows online?

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

    Good but you should make a video about the functions before you use it (e.g redim)

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

    good 👍👍👍👍

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

    sir you great but if you are indain please take hindi audio for indian please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

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

    I am unable to pay you from India. I have some queries on array. How can I contact you?

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

    In the offset u mention it is not clear where the negative sign comes from. If we use 1,0 then 2,0 etc so why do u write -1 ? May please clarify this part ? This is also repeated when using offset. dimension 1 and dimension 2, -1 was also used 🤔🤔

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

    Can you please explain how to use array of array in VBA? this is my logic. i have multiples arrays that stores rows value like arrRow1 ,arrRow2 ,arrRow3 so now i want to store these arrays in a one array that is arrTable[arrRow1 ,arrRow2 ,arrRow3]. If I want to access any value then I'll use
    arrTable[0][1]:- 0 for arrRow1 and the one for the arrRow[1] how its possible in Vba.

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

    Sir, is Vba still in demand in 2020?

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

    sir, I have some doubts. How can I reach you?

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

    Well explained, however the graphics are barely legible.

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

    In minutes 10 u used offset (counter -1,0) . Why dit u use -1. It is not clear really?

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

      here range ("a2") is activecell and
      In offset (x,y) here x = 1,y=1
      means lower bound element start from 1
      Then range ("a2"). offset (1,1). value will be store in range ("b3") as "Sinopec"
      so this will be wrong
      Now here we want to store value in range ("a2") then we need (-1)
      bcz here lower bound element start from 1 not from 0
      If lower bound element from 0 then
      No need minus1(-1)

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

    Sub arrays()
    Dim names() As String
    Dim dimensions1 As Long
    Dim j As Long
    dimensions1 = Range("a1", Range("a1").End(xlDown)).Cells.count
    ReDim names(1 To dimensions1)
    For j = 1 To dimension1
    names(j) = Range("a1").Offset(j - 1, 0).Value
    Next j
    End Sub
    sir i am face very problem to solve this dyanamic array please help me

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

      please help to solve this problem

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

      @@ishrafilansari2241 the only thing wrong in this code is that you have not used proper variable in the line For j = 1 To dimension1 it should be For j = 1 To dimensions1 you were missing an "s" just before the Dimensions.