- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 6# icestormer
©Ò¥H§A¸ê®Æªí¬O¦³«Ü¦h«Ü¦h¥~³¡¸ê®Æ³s½u²Õ¦¨¡A¥þ³¡³£§ó·s¤ÓºC©Ò¥H¬On§ä¨ì¯S©wªº¥~³¡¸ê®Æ§ó·s³s½u´N¦n¡A
µM«á¦A¨ú¦^¶R½æ»ù¨ì¥D¤u§@ªí¡A¹ï¶Ü¡H
קï¥D¤u§@ªí- Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- If Application.Intersect(Target, Range("F1:G1")) Is Nothing Then Exit Sub
- UpdateQueryTable
- UpdatePrice
- End Sub
½Æ»s¥N½X 쥻¤@¯ë¼Ò²Õ¦A¥[¤W:- Sub UpdateQueryTable()
- Dim ar, rng As Range, x
- Dim sMsg As String, bNotFound As Boolean
-
- Const sMark = " - Market Browser"
- sMsg = "¥H¤U§ä¤£¨ì : "
-
- With Sheets("¥D¤u§@ªí")
- ar = Application.Transpose(.Range(.Range("A2"), .Cells(.Rows.Count, "A").End(xlUp)).Value)
- End With
-
- With Sheets("¸ê®Æ°Ï")
- For Each x In ar
- Set rng = .Cells.Find(x & sMark, LookIn:=xlValues, lookat:=xlWhole)
- If rng Is Nothing Then
- sMsg = sMsg & vbCrLf & x & sMark
- bNotFound = True
- Else
- rng.QueryTable.Refresh BackgroundQuery:=False
- End If
- Next
- End With
-
- If bNotFound Then MsgBox sMsg Else MsgBox "Finish"
- End Sub
½Æ»s¥N½X |
|