¦b½d³ò¤º´M§ä«ü©w¤º®eªº¦ì¸m
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
¦b½d³ò¤º´M§ä«ü©w¤º®eªº¦ì¸m
½Ð°Ý¦p¦ó¥i¥H¦b«ü©wÀx¦s®æ½d³ò(¨Ò¦p¦bA1:D5),
§ä¨ì«ü©w¤º®e(¦p "TARGET" )ªºÀx¦s®æ¦ì¸m
½Ð«ü±Ð |
|
|
|
|
|
|
¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
¦^´_ 1# enoch - Sub sh()
- For ghps = 1 To 5
- For gg = 1 To 4
- If Cells(ghps, gg) = "TARGET" Then
- Cells(ghps, 11) = "Y=" & ghps & "X=" & gg
- End If
- Next gg
- Next ghps
- End Sub
½Æ»s¥N½X |
|
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
|
|
|
|
|
- ©«¤l
- 176
- ¥DÃD
- 98
- ºëµØ
- 0
- ¿n¤À
- 279
- ÂI¦W
- 0
- §@·~¨t²Î
- window 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-2-17
- ³Ì«áµn¿ý
- 2020-4-8
|
¦hÁ«ü±Ð, ©l²×n¨C¦æ¥h§ä´M |
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2012-9-29 22:44 ½s¿è
- Dim A As Range
- With Range("A1:D5")
- Set A = .Find(what:="TARGET", After:=.Cells(1, 1))
- End With
- MsgBox A.Address
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# enoch
¸Õ¸Õ³oÓ¡A³o¬O§Ú±`¨Ï¥Îªº¥\¯à¨ç¦¡¡C- Function getTarget(sh As String, rng As String, fnd As Variant) As String
- Dim c As Range
-
- Set c = Sheets(sh).Range(rng).Find(fnd, LookIn:=xlValues, LookAt:=xlWhole)
- If Not c Is Nothing Then
- getTarget = c.Address
- End If
- End Function
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# enoch
§Ú§Ñ¤Fªþ¤W½d¨Ò¡C- Sub Test()
- Dim adr As String
-
- adr = getTarget("¤u§@ªí1", "A1:D5", "TARGET")
- MsgBox adr
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# enoch
¹ê°È¤W¡A·¥¦³¥i¯à·|»Ýn¥h¨ú±o(©Î§ä¨ì) "¼Ðªº" ¥kÃ䪺ȡA
§A¤]¥i¥H¨Ï¥Î¦¹¥\¯à²[¦¡¹F¨ì¥Øªº¡C- Sub Test()
- Dim adr As String
-
- adr = getTarget("¤u§@ªí1", "A1:D5", "TARGET")
- MsgBox adr
- adr = getTarget("¤u§@ªí1", "A1:D5", "TARGET", False)
- MsgBox adr
- [A6] = Range(adr).Value
- End Sub
- Function getTarget(sh As String, rng As String, fnd As Variant, Optional curr As Boolean = True) As String
- Dim c As Range
-
- Set c = Sheets(sh).Range(rng).Find(fnd, LookIn:=xlValues, LookAt:=xlWhole)
- If Not c Is Nothing Then
- getTarget = IIf(curr, c.Address, c.Offset(, 1).Address)
- End If
- End Function
½Æ»s¥N½X
|
|
|
|
|
|
|