- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 7
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ·s¦Ë
- µù¥U®É¶¡
- 2011-11-18
- ³Ì«áµn¿ý
- 2014-5-2
|
[µo°Ý] USERFORM¸ÌªºCOMBOBOX »P TEXTBOX ªºÀ³¥Î
USERFORM¸ÌªºCOMBOBOX »P TEXTBOX ªºÀ³¥Î- Sub 123()
- '
- Dim i As Long, Ur$, Rng As Range, R As Long
- For i = 123000 To 123456
- Ur = "102JD" & Format(i, "000000")
- R = ActiveSheet.UsedRange.Rows.Count
- Set Rng = ActiveSheet.Range("A" & IIf(R = 1, 0, R) + 1)
- With ActiveSheet.QueryTables.Add(Connection:= _
- "URL;http://XXX.XXXX.XXX/XXXXXX/XXXX_XXX_XXXXXXX.XXX?XXXXXXXXXX=" & Ur _
- , Destination:=Rng)
- .Name = "XXXX_XXX_XXXXXXX.XXX?XXXXXXXXXX=" & Ur
- .FieldNames = True
- .RowNumbers = False
- .FillAdjacentFormulas = False
- .PreserveFormatting = True
- .RefreshOnFileOpen = False
- .BackgroundQuery = True
- .RefreshStyle = xlInsertDeleteCells
- .SavePassword = False
- .SaveData = True
- .AdjustColumnWidth = True
- .RefreshPeriod = 0
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = "2"
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- .Refresh BackgroundQuery:=False
- End Sub
-
½Æ»s¥N½X ¸Õ°Ý 1.¦p¦ó¨Ï For i = 123000 To 123456 ¤¤ªº¼Æ¦r 123000»P123456¥Ñ USERFORM1 ¸Ìªº TEXTBOX2¡B TEXTBOX3 ¥N´À
2.¦p¦ó¨Ï Ur = "102JD" & Format(i, "000000") ¤¤ªº 102JD ¥ÑUSERFORM1 ¸ÌªºTEXTBOX1¨ú¥N102 ¡B COMBOBOX1¨ú¥NJD |
|