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

½Ð¨D§ï¨}µ{¦¡

¦^´_ 10# Andy2483



¨S¦³¤W½c¡A¤U½c ½Æ»s¤W¿ù»~¡C ¥þ³¡³£¬O¡§¤W¬[¡¨¡A¡§¤¤½c¡¨¡A¡§¤U¬[¡¨¡C
§Ú±NSheet1 & Map ¬Û¹ïªº¼Æ¾Ú¡A¶K¦b¤W­±¦P¤@­Ó¹Ï¤ù¡A¨Ã¥[¤Jª`ÄÀ¡A¥H«K²M´·¤F¸Ñ¡C
¦pªG¦P¤@­ÓÀx¦s®æ内¦³¨â­Ó¼Æ¾Ú¡A¤À¿ë§xÃøªº¸Ü¡A¥i¥H©¿²¤¡A±N¥¦·í§@¤@­Ó¼Æ¾Ú¨Ó°µ

¤@­ÓÀx¦s®æ内¦³¨â­Ó¼Æ¾Ú¡A²Ä¨â­Ó¼Æ¾Ú·|¤À¶}¦}¦C¡A¦p¤U¡C
W105  AA¤uµ{FC116   1´T
#2311200805 (VP¤uµ{5F栏§ý¬Á¼þ)=1p

W105   AA¤uµ{FC116   1´T
2311200805  VP¤uµ{5F栏§ý¬Á¼þ=1p

¦pªG¤W­±®ÄªG¤À¿ë§xÃø¡A´N·í§@¤@­Ó¼Æ¾Ú¾Þ§@¡A¨ä¾lªº¤â°Ê­×§ï¡A¦p¤U¡G
W105  AA¤uµ{FC116   1´T
#2311200805 (VP¤uµ{5F栏§ý¬Á¼þ)=1p

W105   AA¤uµ{FC116   1´T       #2311200805 VP¤uµ{5F栏§ý¬Á¼þ=1p

TOP

¦^´_ 11# 198188


½Ð¤W¶Ç§¹¾ã¦³³W«hªº½d¨Ò
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 12# Andy2483


¥H¡§Sheet1¡§ ¤u§@ªí ÄæA¨Ó¬°¨Ì¾Ú¡A ¥ÎMAP¼ÒªO¤À©î¤£¦PSheet
¨úÄæA ¥H ¡§#¡¨ ¶}©l¨ì²Ä¤@­ÓªÅ®æ¨Ó©R¦WSheet Name, ¤Î¿ý¤J¡§B3¡¨Àx¦s®æ内
Sheet NameªÅ®æ¦Zªº¤é´Á¡A¿ý¤J¨ìMap ¡§i3¡¨Àx¦s®æ内
¤é´Á¦Zªº45HQ, 40HC, 40GP, 40OT, 40RF, 20GP, ¿ý¤J¨ìMap¡§F3¡¨Àx¦s®æ内
Map¡§M4¡¨Àx¦s®æ内 = TODAY


"MAP" ¤u§@ªí¼ÒªO©T©w¦æ¼Æ5¦æ ¡]¦C6 "¤W¬["¡A¦C7 "¤U¬["¡A¦C8 "¤¤½c"¡A¦C9 "¤W¬["¡A¦C10 "¤U¬["), Äæ¦ì©T©w±qÄæC¶}©l¡AÄæ¼Æ¤£©T©w¡A¨ú¨M¤_ "SHEET1"¸ê®Æ®w

"SHEET1" ¤u§@ªí¸ê®Æ®w¡A¦æ¼Æ³Ì¤Ö5¦æ¡AÄæ¦ì©T©w±qÄæB¶}©l¡AÄæ¼Æ¤£©T©w

¹ïÀ³¼Æ¾Úªº³W«h
Äæ¦ì³W«h¹ïÀ³¡G
Sheet1 ÄæB ¹ïÀ³ MAP Äæ C&D¡A
ÄæC ©â¨ú ¡]¦p¦³ "SR" ¡A±q"SR"¶}©l ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ;  ¦p¨S¦³"SR" ¡A±q²Ä1­Ó¦r ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ¡A¨Ã§R°£²Å¸¹ "#" ¦p¦³¡^¡F
ÄæD ©â¨ú (ÄæC ¨ú¨ìªº¦r¤¸¤§«áªº©Ò¦³¦r¤¸¡A¨Ã§R°£²Å¸¹ "(" & ")" ¦p¦³)

Sheet1 ÄæC ¹ïÀ³ MAP Äæ E&F¡A
ÄæE ©â¨ú ¡]¦p¦³ "SR" ¡A±q"SR"¶}©l ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ;  ¦p¨S¦³"SR" ¡A±q²Ä1­Ó¦r ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ¡A¨Ã§R°£²Å¸¹ "#" ¦p¦³¡^¡F
ÄæF ©â¨ú (ÄæC ¨ú¨ìªº¦r¤¸¤§«áªº©Ò¦³¦r¤¸¡A¨Ã§R°£²Å¸¹ "(" & ")" ¦p¦³)

Sheet1 ÄæD ¹ïÀ³ MAP Äæ G&H¡A
ÄæG ©â¨ú ¡]¦p¦³ "SR" ¡A±q"SR"¶}©l ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ;  ¦p¨S¦³"SR" ¡A±q²Ä1­Ó¦r ¨ì ²Ä¤@­ÓªÅ®æ©ÎªÌ "(" ¡A¨Ã§R°£²Å¸¹ "#" ¦p¦³¡^¡F
ÄæH©â¨ú (ÄæC ¨ú¨ìªº¦r¤¸¤§«áªº©Ò¦³¦r¤¸¡A¨Ã§R°£²Å¸¹ "(" & ")" ¦p¦³)

Sheet1 ÄæE ¹ïÀ³ MAP Äæ I&J ¡A¦p¤W
Sheet1 ÄæF ¹ïÀ³ MAP Äæ K&L ¡A ¦p¤W
Sheet1 ÄæG ¹ïÀ³ MAP Äæ M&N ¡A ¦p¤W
Sheet1 ÄæH ¹ïÀ³ MAP Äæ O&P  ¡A¦p¤W
¦p¦¹Ãþ±À

¦pªGÄæ¦ì内¤@­ÓÀx¦s®æ内¦³¨â²Õ©Î¥H¤W¼Æ¾Ú¡C
¤@­ÓÀx¦s®æ内¦³¨â­Ó¼Æ¾Ú¡A²Ä¨â­Ó¼Æ¾Ú·|¤À¶}¦}¦C¡A¦p¤U¡C
W105  AA¤uµ{FC116   1´T
#2311200805 (VP¤uµ{5F栏§ý¬Á¼þ)=1p

W105   AA¤uµ{FC116   1´T
2311200805  VP¤uµ{5F栏§ý¬Á¼þ=1p

¦pªG¤W­±®ÄªG¤À¿ë§xÃø¡A´N·í§@¤@­Ó¼Æ¾Ú¾Þ§@¡A¨ä¾lªº¤â°Ê­×§ï¡A¦p¤U¡G
W105  AA¤uµ{FC116   1´T
#2311200805 (VP¤uµ{5F栏§ý¬Á¼þ)=1p

W105   AA¤uµ{FC116   1´T       #2311200805 VP¤uµ{5F栏§ý¬Á¼þ=1p

¦C¦ì³W«h¹ïÀ³¡G

Sheet1 ¸Ó²Õªº²Ä¤@¦C  ¹ïÀ³ MAP ¦C6 "¤W¬["
Sheet1 ¸Ó²Õªº²Ä¤G¦C  ¹ïÀ³ MAP ¦C7 "¤U¬["

Sheet1 ¸Ó²Õªº²Ä¤T¦C ¡]©ÎªÌ²Ä¤T¦æ ¦Ü §À¤T¦æ¡^  
Á|¨ÒSheet1,
¦pªGÁ`¦@6¦C¡A²Ä3¡A4¦C ¹ïÀ³ MAP ¦C8 "¤¤½c"¡F ²Ä3¡A4¦Cªº¤À©îÄæ¦ì¼Æ¾Ú¿ý¤J¦P¤@­Ó¬Û¹ïÀ³ªºÄæ¦ì

¦pªGÁ`¦@7¦C¡A²Ä3¡A4¡A5¦C ¹ïÀ³ MAP ¦C8 "¤¤½c"¡A²Ä3¡A4¡A5¦Cªº¤À©îÄæ¦ì¼Æ¾Ú¿ý¤J¦P¤@­Ó¬Û¹ïÀ³ªºÄæ¦ì

¦pªGÁ`¦@8¦C¡A²Ä3¡A4¡A5¡A6¦C ¹ïÀ³ MAP ¦C8 "¤¤½c"²Ä3¡A4¡A5¡A6¦Cªº¤À©îÄæ¦ì¼Æ¾Ú¿ý¤J¦P¤@­Ó¬Û¹ïÀ³ªºÄæ¦ì

¦p¦¹Ãþ±À


Sheet1 ¸Ó²Õªº§À¤G¦C  ¹ïÀ³ MAP ¦C9 "¤W¬["
Sheet1 ¸Ó²Õªº²Ä§À¦C  ¹ïÀ³ MAP ¦C10 "¤U¬["

TOP

¦^´_ 7# 198188

ÁÂÁ½׾Â,ÁÂÁ¦U¦ì«e½ú
«á¾ÇÂǦ¹©«½m²ßVBA,¾Ç²ß¤è®×¦p¤U,½Ð«e½ú°Ñ¦Ò

Sub Map()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Dim A, D, Q, i&, N&, C%, j%, B6$, B7$, xM, T$, T0$, T1$, f%, u%, K, cc%
For i = Worksheets.Count To 4 Step -1: Worksheets(i).Delete: Next
With Sheets(2): B6 = .[B6]: B7 = .[B7]: .[6:11].NumberFormat = "@": .[C6].Resize(10, 20).ClearContents: End With:
C = Sheets(1).UsedRange.Columns.Count
For Each xM In Intersect(Sheets(1).UsedRange, Sheets(1).[A:A])
   N = xM.MergeArea.Cells.Count: If N < 6 Or xM = "" Then GoTo M01
   xA = Split(Trim(xM), " ")
   A = "#" & StrReverse(Mid(Val(1 & StrReverse(xA(0))), 2)): D = CDate(xA(1)): Q = xA(UBound(xA))
   If (Not A Like "[#]###") Or (IsError(D)) Or (Not Q Like "##?Q") Then MsgBox "¸ê®Æ¤£²Å³W«h1": Exit Sub
   With Sheets(2).Copy(after:=Worksheets(Sheets.Count)): With ActiveSheet: .Name = A
      If .DrawingObjects.Count > 0 Then .DrawingObjects.Delete
      [B3] = A: [F3] = Q: [I3] = D: [M4] = Date
      For i = 1 To 2
         For j = 2 To C
            T = Replace(Replace(Trim(xM(i, j)), "¡]", "("), "¡^", ")")
            If T = "" Then GoTo j01
            If InStr(T, B6) Or InStr(T, B7) Then
               T = Replace(T, " ", ""): If Not T Like "*#(*)*" And T <> "" Then MsgBox "¸ê®Æ¤£²Å³W«h2": Exit Sub
               T0 = Trim(Mid(Split(T, "(")(0), 3)): T1 = "(" & Split(T, "(")(1)
               Cells(5 + i, (j - 1) * 2 + 1) = T0: Cells(5 + i, (j - 1) * 2 + 2) = T1: GoTo j01
            End If
            K = Split(T & Chr(10), Chr(10))
            For cc = 0 To UBound(K) - 1
               f = InStr(K(cc), " ")
               If f = 0 Then T0 = K(cc): T1 = "" Else T0 = Mid(K(cc), 1, f - 1): T1 = Mid(K(cc), f + 1)
               Cells(5 + i, (j - 1) * 2 + 1) = IIf(Cells(5 + i, (j - 1) * 2 + 1) = "", T0, Cells(5 + i, (j - 1) * 2 + 1) & vbLf & T0)
               Cells(5 + i, (j - 1) * 2 + 2) = IIf(Cells(5 + i, (j - 1) * 2 + 2) = "", T1, Cells(5 + i, (j - 1) * 2 + 2) & vbLf & T1)
            Next
j01:     Next
      Next
      For i = 3 To N - 3
         For j = 2 To C
            T = Replace(Replace(Replace(Trim(xM(i, j)), "¡]", "("), "¡^", ")"), "(", " (")
            If T = "" Then GoTo j02
            If InStr(T, B6) Or InStr(T, B7) Then
               T = Replace(T, " ", ""): If Not T Like "*#(*)*" And T <> "" Then MsgBox "¸ê®Æ¤£²Å³W«h3": Exit Sub
               T0 = Trim(Mid(Split(T, "(")(0), 3)): T1 = "(" & Split(T, "(")(1)
               Cells(8, (j - 1) * 2 + 1) = IIf(Cells(8, (j - 1) * 2 + 1) = "", T0, Cells(8, (j - 1) * 2 + 1) & vbLf & T0)
               Cells(8, (j - 1) * 2 + 2) = IIf(Cells(8, (j - 1) * 2 + 2) = "", T1, Cells(8, (j - 1) * 2 + 2) & vbLf & T1): GoTo j02
            End If
            f = InStr(T, " "): If f = 0 Then T0 = T: T1 = "" Else T0 = Mid(T, 1, f - 1): T1 = Trim(Mid(T, f + 1))
            Cells(8, (j - 1) * 2 + 1) = IIf(Cells(8, (j - 1) * 2 + 1) = "", T0, Cells(8, (j - 1) * 2 + 1) & vbLf & T0)
            Cells(8, (j - 1) * 2 + 2) = IIf(Cells(8, (j - 1) * 2 + 2) = "", T1, Cells(8, (j - 1) * 2 + 2) & vbLf & T1)
j02:     Next
      Next
      u = 8
      For i = N - 2 To N
         u = u + 1
         For j = 2 To C
            T = Replace(Replace(Trim(xM(i, j)), "¡]", "("), "¡^", ")")
            If T = "" Then GoTo j03
            If InStr(T, B6) Or InStr(T, B7) Then
               T = Replace(T, " ", ""): If Not T Like "*#(*)*" And T <> "" Then MsgBox "¸ê®Æ¤£²Å³W«h4": Exit Sub
               T0 = Trim(Mid(Split(T, "(")(0), 3)): T1 = "(" & Split(T, "(")(1)
               Cells(u, (j - 1) * 2 + 1) = T0: Cells(u, (j - 1) * 2 + 2) = T1: GoTo j03
            End If
            K = Split(T & Chr(10), Chr(10))
            For cc = 0 To UBound(K) - 1
               f = InStr(K(cc), " ")
               If f = 0 Then T0 = K(cc): T1 = "" Else T0 = Mid(K(cc), 1, f - 1): T1 = Mid(K(cc), f + 1)
               Cells(u, (j - 1) * 2 + 1) = IIf(Cells(u, (j - 1) * 2 + 1) = "", T0, Cells(u, (j - 1) * 2 + 1) & vbLf & T0)
               Cells(u, (j - 1) * 2 + 2) = IIf(Cells(u, (j - 1) * 2 + 2) = "", T1, Cells(u, (j - 1) * 2 + 2) & vbLf & T1)
            Next
j03:     Next
      Next
   End With: End With
M01: Next
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 14# Andy2483


§Ú¹B¦æ¦Z¡A¦b#004¥d¦í¤F¡A¤£ª¾¹D­þùØ¥X²{°ÝÃD¡Cªþ¤WExcel.

¥t¥~¤À³Î²Ä¤@Äæ¦ì C, E, G, I, K, M¡A¨S¦³¥h±¼ ¡§ # ¡¨¡A¤À³Î²Ä¤GÄæ¦ìD, F, H, J, L, N ¨S¦³¥h±¼ " ( " & " ) "

±Æ Âd ªí.rar (40.43 KB)

TOP

¦^´_ 15# 198188


ÁÂÁ«e½ú¦^´_
½Ð¦Û¤v¸ÕµÛ±Æ°£°ÝÃD
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 16# Andy2483

¦n¹³¬O¤¤­^¤åªº¡^°ÝÃD¡A¹ê»Ú´N¤£ª¾¹D¬O¤£¬O¡C¨º¨Ç¦³°ÝÃDªºÀx¦s®æ§ï¤F­^¤åªº¡^´N¨S°ÝÃD¡C

¥t¥~¤U­±³o­Ó¥\¯à¬O§_°µ¤£¨ì¡H

¤À³Î²Ä¤@Äæ¦ì C, E, G, I, K, M¡A¨S¦³¥h±¼ ¡§ # ¡¨¡A¤À³Î²Ä¤GÄæ¦ìD, F, H, J, L, N ¨S¦³¥h±¼ " ( " & " ) "

¤U­±³o¨Ç¥h±¼ ¡§¡]¡¨ & ¡§¡^¡¨
(02F单¤¸)
(02F单¤¸)
(9-12F门´²¥ó)
(2-7F栏§ý)

¤U­±³o¨Ç¥h±¼  ¡§ # ¡¨
#2312302239
#2312302236
#2312302240
#2402190275

TOP

¦^´_ 17# 198188

Sub TEST_1()
Dim T$
T = "(A(BC)D)"
If T Like "(*)" Then T = Mid(T, 2, Len(T) - 2)
MsgBox T
End Sub
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

¦^´_ 18# Andy2483


    ¥[¦b­þ­Ó¦ì¸m¤W¡H

TOP

¦^´_ 19# 198188

¤è®×ªº¥N½X³£¬OVBA°ò¦,½Ð¸ÕµÛ¦h¤F¸Ñ¨ä·N¸q,¥[¦b¾A·í¦ì¸m
¥Î¦æ°Ê¸Ë¸mÂsÄý½×¾Â¾Ç²ß«Ü¤è«K,ÁÂÁ½׾¸gÀç¹Î¶¤
½Ð¤j®a¤@°_¤W½×¾Â¨Ó¥æ¬y

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD