¦³½Ð¸Ñµª! ¦p¦ó»s§@¦¹¤@Äæ¦ì??
- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 258
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-28
|
¦^´_ 10# jackdream
§Ú·Q¼Ó¥D³Ì¥Dnªº·N«ä¬O·Q¥unaÄæÅÜ°Ê
bÄæ¥H«á¤½¦¡´N¯à¥N¤JaÄ檺È
§Ú¨S¦³ddeªº³nÅé
§â¥N½X¶K¦b¸Ó¤u§@ªí¼Ò²Õ¤º¸Õ¸Õ- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target <> "" And Target.Column = 1 Then
- Application.EnableEvents = False
- i = InStr(Target.Offset(, 1).Formula, "'")
- k = InStr(Target.Offset(, 1).Formula, "`")
- mystr = Mid(Target.Offset(, 1).Formula, i + 1, k - i - 1)
- Range(Target.Offset(, 1), Target.Offset(, 1).End(xlToRight)).Replace mystr, Target, xlPart
- Application.EnableEvents = True
- End If
- End Sub
½Æ»s¥N½X
Book.rar (10.18 KB)
|
|
¾Ç®üµL²P_¤£®¢¤U°Ý
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2010-7-26
- ³Ì«áµn¿ý
- 2010-8-14
|
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2010-7-27 19:33 ½s¿è
¦^´_ 9# cheng17875
³oÓ¥DÃD¤¤ªºµ{¦¡¬O¥²¶·¦³¦P®É¦b Windows ¤W°õ¦æ "ºëxªºªÑ²¼¬Ý½L³nÅé" ¤~¯à¬Ý¨ì¹ê»Úµ²ªG,
ªþÀɬO§Ú¦b¤½¥q®É°Ñ·Ó²Ä¤@©«¹Ï¥Ü»P¤W¤è 6# jackdream ¤j¤jªºµ{¦¡¤ù¬q°µ¥X¨Óªº,
ÁöµM¤£¬O¥Î§A«á¨Ó¤W¶ÇªºÀÉ®×°µ¨Ò¤l´úªº,
À³¸Ó¤´µMÁÙ¬O¥i¥H¥¿±`¨Ï¥Î¤~¬O.
'===== ¥H¤Uµ{¦¡©ñ¦b Sheet1 =====
Private Sub Worksheet_Change(ByVal Target As Range)
Dim iI As Integer, iRow As Integer
iRow = ActiveSheet.Cells(2, 2).End(xlDown).Row
For iI = 2 To iRow
If Not Intersect(Target, ActiveSheet.Cells(iI, 1)) Is Nothing Then 'Y¦³§ó§ï Ax ¤º®e
If Not Cells(Target.Row, Target.Column) = Empty Then
Call Change(iI)
End If
End If
Next iI
End Sub
'===== ¥H¤Uµ{¦¡©ñ¦b Module1 =====
Sub Change(iI)
Dim iJ As Integer, iCol As Integer, iRow As Integer
Dim sStr As String
With Sheets(1)
iCol = .Cells(2, 1).End(xlToRight).Column
For iJ = 2 To iCol
sStr = .Cells(iI, iJ).Formula
sStr = Left(sStr, 12) & .Cells(iI, 1).Value & Mid(sStr, 17, Len(sStr) - 16)
.Cells(iI, iJ).Formula = sStr
Next iJ
End With
End Sub
Book_a.zip (10.06 KB)
|
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2010-7-26
- ³Ì«áµn¿ý
- 2010-8-14
|
¦^´_ 13# luhpro
·PÁ¦U¦ì¤j¤j µ¹§Ú¤è¦V
§V¤O¾Ç²ß¤¤ º¸«á¦A½Ð¦U¦ì¤£§[±Ð¾É ·PÁ°Õ!!! |
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2010-7-26
- ³Ì«áµn¿ý
- 2010-8-14
|
|
|
|
|
|
|
- ©«¤l
- 9
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2000
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2010-7-26
- ³Ì«áµn¿ý
- 2010-8-14
|
|
|
|
|
|
|
- ©«¤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
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2010-7-30 21:14 ½s¿è
¦^´_ 17# cheng17875
²Ä 1 Ó°ÝÃD§Ú¤]¦³µo²{¨ì,
¥Dn¬O¦]¬°ªÑ²¼¥N¸¹ªº¦r¼Æ¨Ã«D©T©w¬° 4 ½X,
©Ò¥Hn§ï¦¨§äÃöÁä¦r "`",
³¡¤Àµ{¦¡×§ï¦p¤U½Ð¦Û¦æ±a¤J :
dim iNum%
sStr = .Cells(iI, iJ).Formula
iNum = InStr(1, sStr, "`", 1)
sStr = Left(sStr, 12) & .Cells(iI, 1).Value & Mid(sStr, iNum, Len(sStr) - iNum + 1)
.Cells(iI, iJ).Formula = sStr
¦Ü©ó¤½¦¡ªº×§ï¤è¦¡¥Dn´N¬O¨ú¥N±¼ "ªÑ²¼¥N¸¹" ªº³¡¥÷,
¨Ò¦p ºëx ªº¤½¦¡ :
ªÑ²¼¦WºÙ =eMidst|SW!'2330`1019'
ªÑ»ù =eMidst|SW!'2330`205'
´N¬O¥Î left()§ì 2330 «e±ªº¦r¦ê + ·sªºªÑ²¼¥N¸¹ + 2330 ªº "0" «á±¨ºÓ¦r "`" ¶}©lªº¦r¦ê¨Ó¨ú¥N줽¦¡§Y¥i.
¦Ó¨º¥t¤@Ó³nÅ骺¤½¦¡¬Û¦Pªº¥H 2388 ¬°°ò¦°µ¦r¦ê¤À©î,
«á±¨ºÓ¦r¦ê´N§ì "8" «á±¨ºÓ "." ¶}©lªº¦r¦ê´N¥i¥H¤F.
·íµMÁÙ¦³¤@Ó¤èªk´N¬O¤£ºÞìÀx¦s®æªº¤º®e,
ª½±µ±N¤½¦¡¤ºªº¤å¦r Copy ¤U¨Ó¤À©î,
¦A±N¦r¦ê²Õ¦X«á¥áµ¹ìÀx¦s®æ´N¥i¥H¤F,
¨Ò¦p ºëx ªº§ï¥Î :
sStr = "=eMidst|SW!'" & .Cells(iI, 1).Value & "`1019'"
.Cells(iI, iJ).Formula = sStr
¯ÊÂI¬O¤½¦¡¤w¸g©w¦º¦bµ{¦¡¤¤,
YÀx¦s®æ¤¬¬Û¹ï½Õ¦ì¸m¤]¥²¶·§ïµ{¦¡,
¼u©Ê¸û¤p. |
|
|
|
|
|
|