¤£¦n·N«ä,¨D±Ð©ó¦U¤è°ª¤â...
- ©«¤l
- 17
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 56
- ÂI¦W
- 0
- §@·~¨t²Î
- Window10
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-12-4
- ³Ì«áµn¿ý
- 2022-6-16
|
¤£¦n·N«ä,¨D±Ð©ó¦U¤è°ª¤â...
¦U¦ìª©¤Í¤j®a¦n:
¤p§Ì¦³¤@Ó°ÝÃD·Q½Ð±Ð¤j®a,©³¤U¬O¤T¬q "VBA¤pµ{¦¡",°Ê§@¬O
²Ä¤@¬qµ{¦¡¨ú±o3ӰѼÆ,µM«á Call ²Ä¤G¬qµ{¦¡°õ¦æ¨Ã±N°Ñ¼Æ¶Çµ¹²Ä¤T¬qµ{¦¡,
°ÝÃD¥X¦b²Ä¤T¬qµ{¦¡ªº°Ñ¼Æ¨S¦³¶Ç¹F¨ì,ÁöµM²Ä¤T¬qµ{¦¡½T¹ê¦³°õ¦æ.
½Ð°Ý¦³°ª¤â¥i¥H¸Ñµª¶Ü??
ÁÂÁ±z!!
Private Sub CommandButton1_Click()
¤½¥q¥N¸¹ = Cells(4, 2).Value
¦~«×¥N¸¹ = Cells(4, 8).Value
¤ë¥÷¥N¸¹ = Cells(5, 8).Value
Call Download2(¤½¥q¥N¸¹, ¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
End Sub
Sub Download2(¤½¥q¥N¸¹, ¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
Sheets("EPSªí®æ").Select
Range("Z1:BI2000").Select
Selection.ClearContents '²MªÅ ¨¾¿mªí®æ¤¤ªº ªº°]³ø¸ê®Æ
Sheets("¨¾¿mªí®æ").Select
Range("Z1:BI2000").Select
Selection.ClearContents '²MªÅ ¨¾¿mªí®æ¤¤ªº ªº°]³ø¸ê®Æ,
'µM«á,±q ¨¾¿mªí®æ¶}©l¤U¸ü·sªº°]³ø¸ê®Æ
MsgBox (¦~«×¥N¸¹)
MsgBox (¤ë¥÷¥N¸¹)
Call Month(¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
End Sub
Sub Month(¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
Sheets("EPSªí®æ").Select '¤Á´«¨ì EPSªí®æ
'Download ªº²Ä¤@¤ë¥÷¦b AE1536 ¦æ,¬O 2019/10/1
' °ò·Ç¤ë¥÷ = Month(Range("A4")) '¨Ï¥Î©ó§PÂ_¤ë¤À¬O§_¬°1¤ë
°ò·Ç¤ë¥÷ = Format("2030 / 1 / 1", "m") '¨Ï¥Î©ó§PÂ_¤ë¤À¬O§_¬°1¤ë
³Ì·s¤ë¥÷BZ2113 = Format(Range("BZ2113"), "m") '°Ñ¼ÆEPSªí®æBZ2113 ¥N¤J "³Ì·s¤ë¥÷"
MsgBox (¦~«×¥N¸¹)
MsgBox (¤ë¥÷¥N¸¹)
End Sub :) |
|
|
|
|
|
|
- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¦^´_ 1# verify9k
§A¨S¦³µ¹ªþ¥ó¡A§â§Aªºµ{¦¡Â²¤Æ¤§«á
¨S¦³µo²{¥ô¦ó°ÝÃD!
Sub KK()
¤½¥q¥N¸¹ = AAA
¦~«×¥N¸¹ = 2019
¤ë¥÷¥N¸¹ = 5
Call Download2(¤½¥q¥N¸¹, ¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
End Sub
Sub Download2(¤½¥q¥N¸¹, ¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
MsgBox (¦~«×¥N¸¹)
MsgBox (¤ë¥÷¥N¸¹)
Call Month(¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
End Sub
Sub Month(¦~«×¥N¸¹, ¤ë¥÷¥N¸¹)
MsgBox (¦~«×¥N¸¹)
MsgBox (¤ë¥÷¥N¸¹)
End Sub |
|
µ{¦¡¬O¨Ì»Ý¨D¼gªº¡A»Ý¨Dªí¹F¤£²M·¡
©ÎªÌ¨S¦³¤W¶Çªþ¥ó¡A·R²ö¯à§U
|
|
|
|
|