¾È³çÇϼ¼¿ä.
¸ÅÅ©·Î ±â·Ï±â¸¦ ÀÌ¿ëÇÏ¿© ±â·ÏÇÑ ¸ÅÅ©·Î³×¿ä.
1. ¼±ÅÃÇÏ¿© ºÙ¿©³Ö±â¸¦ ÇÏ½Ç ¶§ "³ÃÀåÀç°í" ½ÃÆ®ÀÇ ¹üÀ§°¡ Á¦¸ñ¹Û¿¡´Â ¼±Åõǰí ÀÖÁö ¾Ê½À´Ï´Ù.
"³Ãµ¿Àç°í, »ó¿ÂÀç°í"µµ ¸¶Âù°¡Áö±¸¿ä..
Sheets("³ÃÀåÀç°í").Select Range("A1:F1").Select Range(Selection, Selection.End(xlDown)).Select Range(Selection, Selection.End(xlDown)).Select
À§ÀÇ ¸ÅÅ©·Î Äڵ带 Cells.SelectÀ¸·Î ´ëüÇÒ ¼ö ÀÖ½À´Ï´Ù. ¸ðµç ¼¿À» ¼±ÅÃÇÏ´Â °ÍÀÔ´Ï´Ù. ±×¸®°í ºÙ¿©³Ö±â¸¦
ÇÏ½Ã¸é µÇ°Ú½À´Ï´Ù. ´Ù¸¸ ºÙ¿©³ÖÀ» ´ë»ó¿¡ µ¥ÀÌÅÍ°¡ ÀÖ´Ù¸é µ¤¾î¾²°Ú³Ä´Â ¹°À½ÀÌ ³ª¿Ã ¼öµµ ÀÖ½À´Ï´Ù.
2. offset ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ½Ã¸é µÉ °Í °°½À´Ï´Ù. '½ÇÀç°íÇöȲ'¿¡ µé¾î¿À´Â ³»¿ëÀÌ µ¿ÀûÀ¸·Î º¯°æµÅ¾ßÇÑ´Ù´Â
¸»¾¸ °°½À´Ï´Ù. À̸§ÀÇ ÂüÁ¶´ë»óÀ» =OFFSET(½ÇÀç°í!$A$1,0,0,COUNTA(½ÇÀç°í!A:A),2)°ú °°ÀÌ
Á¤ÀÇÇÏ½Ã¸é µ¿ÀûÀ¸·Î À̸§ ¹üÀ§¸¦ ±¸ÇÒ ¼ö ÀÖ½À´Ï´Ù. [¿¢¼¿°ÁÂ]¸¦ Âü°íÇϼ¼¿ä.
3. call ¸í·ÉÀ» ÀÌ¿ëÇÏ¿© ½ÇÇàµÇ´Â ¼ø¼´ë·Î ¸ÅÅ©·Î¸¦ ½ÇÇàÇÏ½Ã¸é µË´Ï´Ù.
´ÙÀ½°ú °°ÀÌ¿ä.
sub main()
call ½Å¼±À°´Ü°¡
call ³ÃÀåÀÚ·áÀ̵¿
.....
end sub
´äº¯ÀÌ µÇ¼Ì³ª ¸ð¸£°Ú½À´Ï´Ù. ¸ÅÅ©·Î Äڵ带 °ËÁõÇÏ´Â ´Ù¸¥ ¹æ¹ýÀº ¸ÅÅ©·Î¸¦ ½ÇÇàÇÒ ¸ðµâ¿¡¼
[F8]Å°¸¦ ÇÑ ¹ø¾¿ ´·¯ ½ÇÇàµÇ´Â °úÁ¤À» º¸½Ç ¼ö ÀÖ½À´Ï´Ù.
±×·³ Àß µÇ½Ã±æ¿ä..
|