µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
Excelµ{¦¡°Ï
» ·Q½Ð±Ð¨Ï¥ÎFindWindow«ö¤U¹ï¸Ü®Øªº"Àx¦s"
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
·Q½Ð±Ð¨Ï¥ÎFindWindow«ö¤U¹ï¸Ü®Øªº"Àx¦s"
iamaraymond
µoµu®ø®§
¥[¬°¦n¤Í
iamaraymond
(Raymond Chien)
·í«eÂ÷½u
UID
30076
©«¤l
109
¥DÃD
12
ºëµØ
0
¿n¤À
177
ª÷¿ú
177
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
office2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
°ª¶¯
¦b½u®É¶¡
241 ¤p®É
µù¥U®É¶¡
2017-11-19
³Ì«áµn¿ý
2023-7-5
¡@¼ÊºÙ:
Raymond Chien
¤¤¾Ç¥Í
©«¤l
109
¥DÃD
12
ºëµØ
0
¿n¤À
177
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
office2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
°ª¶¯
µù¥U®É¶¡
2017-11-19
³Ì«áµn¿ý
2023-7-5
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2018-1-27 14:31
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
·Q½Ð±Ð¨Ï¥ÎFindWindow«ö¤U¹ï¸Ü®Øªº"Àx¦s"
§Ú·Q§ì¨ú¦bgoogle trend ªºCSV¡A¦ý·í§ÚÂI¿ï¤U¸üCSVªº«ö¶s®É¡A·|¥ý¥X²{¹ï¸Ü®Ø¡A§Ú·QÂI¿ï¹ï¸Ü®Øªº"Àx¦s"¡A¦ýºÉ¶q¤£n¥Îsendkeyªº¤è¦¡
¦p¹Ï
¤U¸ü
(4.52 KB)
2018-1-27 14:21
§Ú¦³google¨ìfindwindow¨Ó¸Ñ¨M¡A¦ýÁÙ¬O¤£¤Óª¾¹D¦p¦óÀ³¥Î
·Q½Ð°Ýª©¤W¦U¦ì°ª¤â¡AÁÂÁÂ
¬ÛÃöºô§}
google trend:
https://trends.google.com.tw/trends/explore?q=%E5%8F%B0%E7%A9%8D%E9%9B%BB
§Ú§ä¨ìªº¬ÛÃöµª®×¡A¦ý¬Ý±o¤£¬O«ÜÀ´
https://www.mrexcel.com/forum/excel-questions/567033-automate-file-download-dialog-box-without-sendkeys.html
¨Ï¥Îfindwindow®Én¥ý¥[¤J
Private Declare Function FindWindowEx Lib "user32" Alias _
"FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
©M
Private Declare Function FindWindow Lib "user32" Alias _
"FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
³Ì«á¬O§Úªºcode
Sub googleTrend()
Dim IE As Object
Dim myhtml As Object
[A5].CurrentRegion.Clear
Set IE = CreateObject("InternetExplorer.Application")
Set myhtml = CreateObject("htmlfile")
With IE
.Visible = False
.Navigate "https://trends.google.com.tw/trends/explore?q=%E5%8F%B0%E7%A9%8D%E9%9B%BB"
Do While .Busy Or .readyState <> 4: DoEvents: Loop
Dim doc
Set doc = .document
Dim myButton
Dim myButtons
Call delay
Set myButtons = doc.getElementsByTagName("button")
For Each myButton In myButtons
If myButton.getAttribute("title") Like "*CSV*" Then
myButton.Click
Call delay
Application.SendKeys ("%{s}")
Exit For
End If
'Debug.Print myButton.getAttribute("title")
Next
Dim theCSV
Dim WB
Dim theData
theCSV = "C:\Users\User\Downloads" & "\" & "multiTimeline.csv"
If Dir(theCSV) <> "" Then Kill theCSV
On Error GoTo errHandler
continue:
Set WB = Workbooks.Open(theCSV)
With WB.ActiveSheet
Set theData = .[A1].CurrentRegion
ThisWorkbook.Sheets("¤u§@ªí1").[A5].Resize(theData.Rows.Count, theData.Columns.Count) = theData.Value
End With
WB.Close
Set WB = Nothing
Kill theCSV
.Quit
Set IE = Nothing
End With
Exit Sub
errHandler:
On Error GoTo 0
Call delay
GoTo continue
End Sub
Sub delay()
Application.Wait Now() + TimeValue("00:00:03")
End Sub
½Æ»s¥N½X
·PÁÂ
¼Ó¥D¼ö©«
¶°«O¸ê®Æ(§ïª©«á)
Excel VBA ¿ù»~³B²z¬yµ{(¥þ¹Ï¸Ñ)
VBAºô¸ôª¦ÂÎ(ºô¸ô¸ê®Æ»`¶°)
VBAºô¸ôª¦ÂÎ-XMLHTTPª«¥ó
Excel VBA ¦Û°Ê§ì¨ú´Á¥æ©Ò ´Á³f¨C¤é¥æ©ö¦æ±¡
[±Ð¾Ç¤å] §Q¥ÎVBA§ìªÑ»ù¸ê®Æ--§ä¥Xºô¯¸¸ê®Æ
Excel VBA ´Á¥æ©Ò¸ê®Æ¦Ûq¤é¼Æ¬d¸ß
ªí³æ°ÝÃD ½Ð°Ý¦p¦ó±±¨îcheckbox¼Æ¶q
½Ð°Ý³oÓ¥I¶O¥\¯à¬O¦p¦ó³]©wªº©O?
¦¬ÂÃ
¤À¨É
Excel VBAºô¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html
ÀR«ä¦Û¦b :
¦a¤WºØ¤Fµæ¡A´N¤£©öªø¯ó¡F¤ß¤¤¦³µ½¡A´N¤£©ö¥Í´c¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·