For Effective Your Life!!
UNO-WEEKLY


Skip Navigation Links.
Collapse UNO-WeeklyUNO-Weekly
About
응용 소품들
[엑셀과 외부정보(DB)]
[UNO-Daily]
[UNO-Weekly Add-In]
[UNO-CPM]공정관리도구
[UNO-Weekly 안드로이드폰]
[UNO_CodeLibrary]
[엑셀기본]
[uno_english_patterns]
Collapse 2023-102023-10
2 Week
3 Week
4 Week
Collapse 2023-092023-09
1 Week
2 Week
3 Week
4 Week
Collapse 2023-082023-08
1 Week
2 Week
3 Week
4 Week
Collapse 2023-072023-07
1 Week
2 Week
3 Week
4 Week
5 Week
Collapse 2023-062023-06
1 Week
2 Week
3 Week
4 Week
Collapse 2023-052023-05
1 Week
2 Week
3 Week
4 Week
5 Week
Collapse 2023-042023-04
1 Week
2 Week
3 Week
4 Week
Expand 2023-032023-03
Expand 2023-022023-02
Expand 2023-012023-01
Expand 2022-122022-12
Expand 2022-112022-11
Expand 2022-102022-10
Expand 2022-092022-09
Expand 2022-082022-08
Expand 2022-072022-07
Expand 2022-062022-06
Expand 2022-052022-05
Expand 2022-042022-04
Expand 2022-032022-03
Expand 2022-022022-02
Expand 2022-012022-01
Expand 2021-122021-12
Expand 2021-112021-11
Expand 2021-102021-10
Expand 2021-092021-09
Expand 2021-082021-08
Expand 2021-072021-07
Expand 2021-062021-06
Expand 2021-052021-05
Expand 2021-042021-04
Expand 2021-032021-03
Expand 2021-022021-02
Expand 2021-012021-01
Expand 2020-122020-12
Expand 2020-112020-11
Expand 2020-102020-10
Expand 2020-092020-09
Expand 2020-082020-08
Expand 2020-072020-07
Expand 2020-062020-06
Expand 2020-052020-05
Expand 2020-042020-04
Expand 2020-032020-03
Expand 2020-022020-02
Expand 2020-012020-01
Expand 2019-122019-12
Expand 2019-112019-11
Expand 2019-102019-10
Expand 2019-092019-09
Expand 2019-082019-08
Expand 2019-072019-07
Expand 2019-062019-06
Expand 2019-052019-05
Expand 2019-042019-04
Expand 2019-032019-03
Expand 2019-022019-02
Expand 2019-012019-01
Expand 2018-122018-12
Expand 2018-112018-11
Expand 2018-102018-10
Expand 2018-092018-09
Expand 2018-082018-08
Expand 2018-072018-07
Expand 2018-062018-06
Expand 2018-052018-05
Expand 2018-042018-04
Expand 2018-032018-03
Expand 2018-022018-02
Expand 2018-012018-01
Expand 2017-122017-12
Expand 2017-112017-11
Expand 2017-102017-10
Expand 2017-092017-09
Expand 2017-082017-08
Expand 2017-072017-07
Expand 2017-062017-06
Expand 2017-052017-05
Expand 2017-042017-04
Expand 2017-032017-03
Expand 2017-022017-02
Expand 2017-012017-01
Expand 2016-122016-12
Expand 2016-112016-11
Expand 2016-102016-10
Expand 2016-092016-09
Expand 2016-082016-08
Expand 2016-072016-07
Expand 2016-062016-06
Expand 2016-052016-05
Expand 2016-042016-04
Expand 2016-032016-03
Expand 2016-022016-02
Expand 2016-012016-01
Expand 2015-122015-12
Expand 2015-112015-11
Expand 2015-102015-10
Expand 2015-092015-09
Expand 2015-082015-08
Expand 2015-072015-07
Expand 2015-062015-06
Expand 2015-052015-05
Expand 2015-042015-04
Expand 2015-032015-03
Expand 2015-022015-02
Expand 2015-012015-01
Expand 2014-122014-12
Expand 2014-112014-11
Expand 2014-102014-10
Expand 2014-092014-09
Expand 2014-082014-08
Expand 2014-072014-07
Expand 2014-062014-06
Expand 2014-052014-05
Expand 2014-042014-04
Expand 2014-032014-03
Expand 2014-022014-02
Expand 2014-012014-01
Expand 2013-122013-12
Expand 2013-112013-11
Expand 2013-102013-10
Expand 2013-092013-09
Expand 2013-082013-08
Expand 2013-072013-07
Expand 2013-062013-06
Expand 2013-052013-05
Expand 2013-042013-04
Expand 2013-032013-03
Expand 2013-022013-02
Expand 2013-012013-01
Expand 2012-122012-12
Expand 2012-112012-11
Expand 2012-102012-10
Expand 2012-092012-09
Expand 2012-082012-08
Expand 2012-072012-07
Expand 2012-062012-06
Expand 2012-052012-05
Expand 2012-042012-04
Expand 2012-032012-03
Expand 2012-022012-02
Expand 2012-012012-01
Expand 2011-122011-12
Expand 2011-112011-11

VBA Tips..

Parameter And Argument| 매개변수와 인수

매개변수 Parameter
인수 Argument
함수의 매개변수에 인수를 전달합니다..
pass Argument to Parameter of function
이라는 말을 우리뿐만 아니고 영어를 하는 그들 도 헷갈린다
그래서 Microsoft의 VB문법을 설명하는 곳에 이렇게 재미있게해놓은 것이 있다
Parameter or Argument ... Which is Which?
매개변수 혹은 인수..도대체..거시기가..뭐시기냐??
라는 제목으로
함수에 매개변수를 전달하여야 한다고 하나..인수를 전달한다고 해야 하나
함수의 매개변수에 인수를 전달합니다!!가 맞는 답이다

아래와 같이 theSub이라는 프로시져를 호출하면서 value를 전달한다

theSub(Value)

...

Private Sub theSub(ByVal theValue as Object)

...

End Sub

Is(Value / theValue) an argument or a parameter?
value가 인수냐 매개변수냐..
theValue가 인수냐 매개변수냐..

the procedure defines a parameter,|프로시져가 매개변수를 정의하고
and the calling code passes an argument|프로시져를 부르는 곳에서 인수를 전달한다
to that parameter.| 프로시져가 갖고 있는 매개변수에 전달하는 것이다

You can think of the
parameter as a parking space
and the
argument as an automobile.

매개변수(Parameter)를 주차공간(Parking space)으로 생각하시고
인수(Argument)를 주차공간(Parking Space)에 세우는 자동차(Automobile)로
생각하시면 됩니다

참고로 주차장은 Parking Lot이고
자동차 한대만 세우게 구획이 정해진 공간은 Parking Space이다

That's a great way to remember it! | 참 기억하기 좋은 방법이다
"P" for both "parking space" and "parameter".| "P"는 parameter와 parking space의 P
"A" for "automobile" and "argument".| "A"는 automobile과 argument의 A
So, in the example above, "Value" is an argument, | 그래서 위의 "Value"는 인수(argument)고
"theValue" is a parameter| "theValue"는 매개변수(parameter)이다

생각난 김에 하나더 ..
그런데 매개변수는 프로시져나 함수에서 정의(Define)한 것이라고 했다
그런데 정의 할때 앞에 ByRef라고 하기도 하고 ByVal이라고도 하는데
(VBA에서는 앞에 이것을 안붙이면 ByRef로 간주한다)
뭐가 다른가???
아래의 그림과 같다..



ByVal( By Value)
는 말그대로 변수 SomeValue가 갖고 있는 내용만 전달되기 때문에
theSub프로시져에서 아무리 뚝딱거리고 고쳐도
호출한 쪽의 SomeValue변수상에는 아무 영향이 오지 않는다
ByRef( By Reference)
주차공간이 공동소유인 셈이다
그러니 호출받은 theSub에서 전달받는 값을
뚝딱거려서 고친다면 이 고친내용이 그대로
프로시져를 호출한 곳의 SomeValue변수자체의 내용이
같이 바뀌는 것이다

초보님들은 그냥 별것이것어??!@#하고 넘어갈 일이지만
실은 참으로 중요한 컨셉이니..잘 알고 있고..
잘 활용할줄 알아야 한다
활용은 uno-weekly..주간화일에서 흔하게 볼수 있는 내용일 것이니..
무심코 보려고 하지 마시고
이런 컨셉을 바탕으로 깔고 보시는 것이 좋을 것이다