vba ·j´MÀx¦s®æ«á¡A¶K¤W¨ä¥LÄæ¦ì
- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-5-12
- ³Ì«áµn¿ý
- 2016-5-12
|
vba ·j´MÀx¦s®æ«á¡A¶K¤W¨ä¥LÄæ¦ì
¦U¦ìª©¤jª©¤Í¦n
¤p§Ì³oÃ䦳ÓEXCEL °ÝÃD·Q½Ð±Ð¸û¡A¦pªG§Ún¦b¥kÃä¿é¤J§Ú·Qnªº¥N½X(¦p¥kÃ䪺KA800)¡A
µM«á·j´M¥ªÃäA¨ºÄæ¡A·j´M¨ì¤§«á¡A¶K¤W¸òÀH¨ä(B~I¡ABC ¶K¥kÃä²Ä¤@¦C¼Æ¦r)¡A½Ð°Ý³o¼Ë¸Ó¦p¦ó¼g³oÓVBA
·PÁÂ!!~
A B C D E F G H I
KA100 0.2410 0.2150 0.2425 0.2200 0.2475 0.2200 0.2460 0.2150
KA200 0.2460 0.2150 0.2475 0.2200 0.2525 0.2200 0.2510 0.2150 KA100
KA300 0.2510 0.2150 0.2525 0.2200 0.2575 0.2200 0.2560 0.2150 0.2410 0.2150
KA400 0.2560 0.2150 0.2575 0.2200 0.2625 0.2200 0.2610 0.2150 0.2425 0.2200
KA500 0.2610 0.2150 0.2625 0.2200 0.2675 0.2200 0.2660 0.2150 0.2475 0.2200
KA600 0.2660 0.2150 0.2675 0.2200 0.2725 0.2200 0.2710 0.2150 0.2460 0.2150
KA700 0.2710 0.2150 0.2725 0.2200 0.2775 0.2200 0.2760 0.2150
KA800 0.2760 0.2150 0.2775 0.2200 0.2825 0.2200 0.2810 0.2150 |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 1# snoopykay - Sub nn()
- Dim iI%, iCol%
- Dim lTop&
- Dim sStr$
- Dim rTar As Range
-
- Range([K2], [L8]).Clear
- sStr = InputBox("½Ð¿é¤Jn·j´Mªº¸ê®Æ", "´M§ä¸ê®Æ")
- Set rTar = Range("A:A").Find(sStr, LookIn:=xlValues)
- If Not rTar Is Nothing Then
- With rTar
- iCol = 11
- lTop = 2
- Cells(lTop, iCol) = .Value
- For iI = 0 To 3
- Range(.Offset(, iI * 2 + 1), .Offset(, iI * 2 + 2)).Copy Cells(lTop + iI + 1, iCol)
- Next
- End With
- End If
- End Sub
½Æ»s¥N½X
VBA·j´MÀx¦s®æ«á¡A¶K¤W¨ä¥LÄæ¦ì.zip (7.77 KB)
|
|
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 24
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2016-3-23
- ³Ì«áµn¿ý
- 2016-7-4
|
¦^´_ snoopykay
luhpro µoªí©ó 2016-5-12 22:25
½Ð±Ðluhpro ¤j¤j
iI% ÁÙ¦³ iCol% «á±ªº%²Å¸¹¬O¥NªíÔ£·N«ä©O?
¤p§Ì¤~¾Ç²Ê²L¡A·Ð½Ð«ü±Ð |
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 3# mave
½Ð°Ñ¦Ò¤pÀ°¤âªº»¡©ú:
Integer ¸ê®Æ«¬ºA
Integer ÅܼƫY¥H½d³ò¬° -32,768 ¨ì 32,767 ¤§ 16 ¦ì¤¸ (2 Ӧ줸²Õ) ¼Æ¦rªº§Î¦¡Àx¦s¡CInteger ªº«¬ºA«Å§i¦r¤¸¬O¦Ê¤À¤ñ²Å¸¹(%)¡C |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¥»©«³Ì«á¥Ñ ML089 ©ó 2016-5-17 13:13 ½s¿è
Private Sub Worksheet_Change(ByVal Target As Range)
Dim xF As Range
If Target.Address <> "$K$2" Then Exit Sub
Set xF = [Sheet1!A:A].Find([K2].Value, lookat:=xlWhole)
If xF Is Nothing Then MsgBox "§ä¤£¨ì": Exit Sub
For i = 1 To 4
xF(1, i * 2).Resize(, 2).Copy [K2:L2].Offset(i, 0)
Next
End Sub
¦A±N K2 ³]©w¬° A:A ªº¿ï³æ¡A¥i¥H²¤Æ§@·~ |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 24
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2016-3-23
- ³Ì«áµn¿ý
- 2016-7-4
|
¦^´_ 4# luhpro
·PÁ¤j¤jªº¦^ÂÐ
Åý¤p§Ì¼W¥[¨£»D¤F
·P®¦ |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-5-17 20:02 ½s¿è
¦^´_ 1# snoopykay - Sub Ex()
- Dim sStr$, rest As Range
- Dim lTar As Range, rTar As Range
-
- Range("K2:L10").Clear
- sStr = InputBox("½Ð¿é¤Jn·j´Mªº¸ê®Æ", "´M§ä¸ê®Æ")
- Set lTar = Range("A:A").Find(sStr, LookIn:=xlValues)
-
- If Not lTar Is Nothing Then
- ' Set rest = lTar.Resize(1, 9)
- Set rTar = Cells(2, 11)
- ' rTar.Resize(9, 1) = Application.Transpose(rest) ' ¤W¤U¦æ¦P¸q
- rTar.Resize(9, 1) = Application.Transpose(lTar.Resize(1, 9))
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|