Excel VBA Introduction Part 43.2 - ByRef and ByVal (When to use Parentheses)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 17

  • @UzmanExcel
    @UzmanExcel 6 ปีที่แล้ว +2

    Best best best of TH-cam VBA so far

  • @brianjensen2923
    @brianjensen2923 7 ปีที่แล้ว +4

    Thanks for your series, I've learned so many fundamental concepts that were glossed over in other youtube vba videos. Please keep making more advanced videos.

  • @TonyDiaz.
    @TonyDiaz. 8 ปีที่แล้ว +1

    A tip for viewers. I do this: for procedures I never use parenthesis and helps me distinguish procedures from functions. There's a point where I have so many functions and subprocedures that use arguments, that if I use all with parentheses, I will just get confused.
    Another thing to tidy your code is to use functions for returning values and subs for actually executing something.
    Great vid as always my friend...

    • @chandrab7185
      @chandrab7185 7 ปีที่แล้ว

      WiseOwlTutorials - u made excellent videos. Thank u very much for such great videos. Could u plz clarify how it works in memory if we use the same variable name in both the argument and parameter

    • @jimfitch
      @jimfitch 3 ปีที่แล้ว

      Being unaware of the lessons in this video, my technique to distinguish btwn functions & subs is prefixes. I name all subs with “sub” prefix & all functions with “fct” prefix. Works great for me. I also use data type prefixes when naming variables & arrays: “str” for string; “lng” for long integer; “i” for integer; etc.

  • @lukaszpiech9130
    @lukaszpiech9130 8 ปีที่แล้ว +2

    Your training videos are awesome. Keep doing a great work!

  • @krn14242
    @krn14242 8 ปีที่แล้ว +1

    Thanks for the clarification Andrew.

  • @ouzytheoriginal
    @ouzytheoriginal 3 ปีที่แล้ว +1

    thank you

  • @jimfitch
    @jimfitch 3 ปีที่แล้ว +1

    Thanks, Andy. I *never* would have figured this out on my own. Very good to know.
    Do you know if named assignment using := forces a ByVal or ByRef assignment?

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 ปีที่แล้ว +1

      Hi Jim, glad you found it useful! Using named parameters doesn't affect whether an argument is passed by ref or by val.

    • @jimfitch
      @jimfitch 3 ปีที่แล้ว +1

      @@WiseOwlTutorials Thanks!

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 ปีที่แล้ว

      @@jimfitch No problem Jim!

  • @chandruchandru-uq6eg
    @chandruchandru-uq6eg 2 ปีที่แล้ว

    Hi, Can you please Make Videos of Libreoffice _STAR BASIC macros -Videos Series

    • @WiseOwlTutorials
      @WiseOwlTutorials  2 ปีที่แล้ว +1

      Thanks for the suggestion but I don't think that's something we'll be doing in the near future, sorry!

    • @chandruchandru-uq6eg
      @chandruchandru-uq6eg 2 ปีที่แล้ว

      @@WiseOwlTutorials Because, There is No proper video series in Star Basic......

  • @SPARK9026ONLINE
    @SPARK9026ONLINE 7 ปีที่แล้ว

    OMG , I'm sorry , I could not understand basic things due to language or some other reason that why we must use () instead of ".😑