ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] vba §ì¨ú javascript:__doPostBack('','')¼Æ­È¨C¤é¦Û°Ê+1°ÝÃD

[µo°Ý] vba §ì¨ú javascript:__doPostBack('','')¼Æ­È¨C¤é¦Û°Ê+1°ÝÃD

¥»©«³Ì«á¥Ñ msmplay ©ó 2018-3-25 09:45 ½s¿è

Sub ¬d¸ß¨C¤é¼Æ¾Ú()
Set myIE = CreateObject("InternetExplorer.Application")
With myIE
.Visible = true
.Navigate "http://xxxxxxxxxxxx/xxx.aspx" '¬d¸ß¼Æ¾Úºô§}

Do While .ReadyState <> 4
    DoEvents
Loop
.Navigate "javascript:__doPostBack('ct600$phCondition3$cldDate','6656')" 'ÂI¿ï¬d¸ß¤é´Á'6656'¥Nªí¼Æ¦r23¡A¤]´N¬O·í¤ë23¸¹
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.document.forms(0).all("ct600_btnConfirm").Click 'ÂI¿ï¬d¸ß«ö¶s
End With
End Sub
---------------------------------------------------------------------------------------------------------

¥H¤Wµ{¦¡½X¤wª¾:
¥i¨Ï¥Î.Navigate "javascript:__doPostBack('ct600$phCondition3$cldDate','6656')"ÂI¿ïºô­¶¤é´Áµøµ¡ªº¤é´Á

°ÝÃD:
¦p¦óÅý'6656'³o­Ó¼Æ­È¯à¨C¤é¦Û°Ê+1¡A¥H¦Û°Ê¨ú±o¨C¤é¼Æ¾Ú¡AµL»Ý¤H¤u¨C¤é§ó§ï¼Æ¾Ú

¨Ò¦p:
6656 = 23 (¥Nªí·í¤ë23¸¹)
6657 = 24 (¥Nªí·í¤ë24¸¹)
6658 = 25 (¥Nªí·í¤ë24¸¹)
6659 = 26 (¥Nªí·í¤ë24¸¹)
6660 = 27 (¥Nªí·í¤ë24¸¹)
6661 = 28 (¥Nªí·í¤ë24¸¹)
6662 = 29 (¥Nªí·í¤ë24¸¹)
6663 = 30 (¥Nªí·í¤ë24¸¹)
6664 = 31 (¥Nªí·í¤ë24¸¹)
6665 = 1 (¥Nªí·í¤ë1¸¹)
¥H¦¹Ãþ±À.....
*¦v¤k¤@ªTµL»~*

¦^´_ 1# msmplay

.Navigate "javascript:__doPostBack('ct600$phCondition3$cldDate','6656')" 'ÂI¿ï¬d¸ß¤é´Á'6656'¥Nªí¼Æ¦r23¡A¤]´N¬O·í¤ë23¸¹

§Ú¥Î2018/3/26ªº¤é´ÁÂà´«¬O43185,´î¥h36529´N¬O6656,©Ò¥H½Ð¦Û¦æ½Õ¾ã(¦]¬°6656Âà´««á¬O1918/3/22)

.Navigate "javascript:__doPostBack('ct600$phCondition3$cldDate',' " & (Format(Date, "0") - 36529) & " ')"

TOP

¦^´_ 2# jcchiang


   j¤j~~~~¯u¬O¤Ó¼F®`¤F§A¡A¹ê´ú¤w¦¨¥\¡A«D±`·PÁÂÀ°¦£³á!!
*¦v¤k¤@ªTµL»~*

TOP

¦^´_ 2# jcchiang

   j¤j~~¥i¥H¦A¦V§A½Ð±Ð¤@­Ó°ÝÃD¶Ü¡H½Ð°Ý¥H¤U»Ý­n¦Û°ÊÀx¦sÀɮתºµ{¦¡½X§A·|¶Ü¡H
----------------------------------------------------------
Sub ¬d¸ß¨C¤é¼Æ¾Ú¨Ã¤U¸üÀÉ®×()
Set myIE = CreateObject("InternetExplorer.Application")
With myIE
.Visible = true
.Navigate "http://xxxxxxxxxxxx/xxx.aspx" '¬d¸ß¼Æ¾Úºô§}

Do While .ReadyState <> 4
    DoEvents
Loop

.Navigate "javascript:__doPostBack('ct600$phCondition3$cldDate',' " & (Format(Date, "0") - 36529) & " ')"
Application.Wait Now + 2 / 86400 'µ¥«Ý2¬í
.document.forms(0).all("ct600_btnConfirm").Click 'ÂI¿ï¬d¸ß«ö¶s

.Navigate "http://10.178.1.140:8023/ReportPage/ReportAgentToDay_28_tptv.aspx" '¬d¸ß¼Æ¾Ú·|¦Û°Ê²£¥Í©ó¦¹ºô§}­¶­±

     Do Until .ReadyState = 4
        DoEvents
     Loop

.document.forms(0).all("ctl00_btnDownload").Click 'ÂI¿ï¤U¸ü«ö¶s

  'ÂI¿ï¤U¸ü«ö¶s«á¡Aºô­¶·|¼u¥X¤U¸üÀÉ®×µøµ¡¡A¸ß°Ý"¶}±ÒÂÂÀÉ"¡B"Àx¦s"¡B"¨ú®ø"¿ï¶µ
  '§Æ±æ¯à¦Û°ÊÀx¦s¦Ü¦P¸ê®Æ§¨¨Ã«O«ù­ìÀɦW.csvÀÉ(¤U¸üÀɮ׬°.csvÀÉ)
  '½Ð°Ý¥H¤W³o¬qµ{¦¡½X¸Ó«ç»ò¼g©O¡H

End With
End Sub


*¦v¤k¤@ªTµL»~*

TOP

¦^´_ 4# msmplay
§Ú¨S¦³¸Õ¹L±qºô¯¸¤U¸üÀx¦s,¦³®É¶¡§Ú¦A¬ã¨s¤@¤U
©Î³\¯¸¤W¦³¨ä¥L°ª¤â¯àÀ°§A¸Ñ¨M

TOP

        ÀR«ä¦Û¦b : ½_ÁJµ²±o¶V¹¡º¡¡A¶V·|©¹¤U««¡A¤@­Ó¤H¶V¦³¦¨´N¡A´N­n¶V¦³Á¾¨Rªº¯ÝÃÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD