ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦³½Ð¸Ñµª! ¦p¦ó»s§@¦¹¤@Äæ¦ì??

¦^´_ 10# jackdream


    §Ú·Q¼Ó¥D³Ì¥D­nªº·N«ä¬O·Q¥u­naÄæÅÜ°Ê
bÄæ¥H«á¤½¦¡´N¯à¥N¤JaÄ檺­È
§Ú¨S¦³ddeªº³nÅé
§â¥N½X¶K¦b¸Ó¤u§@ªí¼Ò²Õ¤º¸Õ¸Õ
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2. If Target <> "" And Target.Column = 1 Then
  3. Application.EnableEvents = False
  4. i = InStr(Target.Offset(, 1).Formula, "'")
  5. k = InStr(Target.Offset(, 1).Formula, "`")
  6. mystr = Mid(Target.Offset(, 1).Formula, i + 1, k - i - 1)
  7. Range(Target.Offset(, 1), Target.Offset(, 1).End(xlToRight)).Replace mystr, Target, xlPart
  8. Application.EnableEvents = True
  9. End If
  10. End Sub
½Æ»s¥N½X
Book.rar (10.18 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ cheng17875 ©ó 2010-7-27 16:09 ½s¿è

¦^´_ 10# jackdream


   


·PÁ¦U¦ì¤j¤jªºÀ°¦£ !  ¤Ó·P¤ß¤F  ¤£¹L§Ú¦³»Ý­n»¡©ú

§ÚªºÀx¦s®æ¤º³£µL¤½¦¡©Îµ{¦¡
¥u¦³³nÅé³sµ²¨Ó·½ªº¤º½X
°ß¤@·Q­n¦bAÄæ  key ªÑ²¼¥N¸¹  ´N¥i¥H§ïÅÜB/C/D.....¦UÄ椺 ³nÅé³sµ²¨Ó·½¤º½X(eMidst|SW!'9907`1019')
¬õ¦â¦ì¸m´N¬OªÑ²¼¥N½X

TOP

¥»©«³Ì«á¥Ñ 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)

TOP

¦^´_ 13# luhpro


    ·PÁ¦U¦ì¤j¤j  µ¹§Ú¤è¦V
§V¤O¾Ç²ß¤¤   º¸«á¦A½Ð¦U¦ì¤£§[±Ð¾É  ·PÁ°Õ!!!

TOP

¦^´_ 13# luhpro


    ¤£ª¾¹D§Ú­þ¸Ì°µ¿ù¤F!  ¦³½Ð¦U¦ì¥ý¶i«ü¾É  ·P®¦



¦pªG¤j¤j¥i¥H «ü¾É¨BÆJ§ó¦n  ³o¼Ë§Ú´N¥i¥H¾Ç¨ì§ó¦h
·P®¦·P®¦

TOP

¦^´_ 15# cheng17875


    µ{§Ç¦WºÙmodule1§ï¦¨Change(iI)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ cheng17875 ©ó 2010-7-30 11:37 ½s¿è

¦^´_ 16# Hsieh
¤£¦n·N«ä! Åý¤j®a¦hÀ°¦£¤F..¤£¹L§Ú¦ü¥GºCºC¦³ÂI»{ÃÑ¥Ö¤ò¤F   ¦pªG¥i¥Hªº¸Ü  ¤]§Æ±æ¤j¤j¯à±Ð¾É¤@¤U»s§@¹Lµ{¹Ï¸Ñ
°õ¦æ¤j­P¤WOK
¦ý¦³°ÝÃDµo¥Í






¥t¦³°ÝÃD¥i§_À°¦£¸Ñµª:
°²¦p§Ú§âDDE³sµ²ªº´«¦¨¥t¤@®M¨é°Ó³ø»ù³nÅé
¤º½X¤£¤@¤F µ{¦¡½X·|»Ý­nÅܧó­þ¨Ç¦a¤è©O??¦p¹Ï

TOP

¥»©«³Ì«á¥Ñ luhpro ©ó 2010-7-30 21:14 ½s¿è

¦^´_ 17# cheng17875

²Ä 1 ­Ó°ÝÃD§Ú¤]¦³µo²{¨ì,
¥D­n¬O¦]¬°ªÑ²¼¥N¸¹ªº¦r¼Æ¨Ã«D©T©w¬° 4 ½X,
©Ò¥H­n§ï¦¨§äÃöÁä¦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

¦Ü©ó¤½¦¡ªº­×§ï¤è¦¡¥D­n´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.

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD