²¾°Ê¦³ÃC¦âªº¦C¨ì¨ä¥Lsheet(¤p°ÝÃD½Ð±Ð)
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
²¾°Ê¦³ÃC¦âªº¦C¨ì¨ä¥Lsheet(¤p°ÝÃD½Ð±Ð)
|
|
|
|
|
|
- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¦^´_ 1# jj369963
¦Ñª©EXCEL¤£¯à¸gVBA¿ï¥X"±ø¥ó®æ¦¡"ªºÃC¦â.
¥i¥H¯uªí¥Î¥N½X¼g¥X- Sub test()
- Dim lngRowPwd As Long, lngRowNoAns As Long
- lngRowPwd = 1
- lngRowNoAns = 1
- For Each c In Range(Range("A1"), Range("A65536").End(xlUp))
- If Application.WorksheetFunction.CountA(Range(c, c.Offset(0, 1))) = 0 Then 'A:B
- Worksheets("µL±b±K").Rows(lngRowPwd).Value = Rows(c.Row).Value
- lngRowPwd = lngRowPwd + 1
- ElseIf Application.WorksheetFunction.CountA(Range(c.Offset(0, 7), c.Offset(0, 94))) <> 88 Then 'H:CQ
- Worksheets("µL§@µª").Rows(lngRowNoAns).Value = Rows(c.Row).Value
- lngRowNoAns = lngRowNoAns + 1
- End If
- Next
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
¦^´_ 3# GBKEE
Dear GBKEE ª©¥D¡G
ÁÂÁ±zªº¦^À³¡A¦ý¬O¥X²{¤@ÂI°ÝÃD
¦pªG±z¦³ªÅ¡A¥i¥H¦A³Â·Ð±z¬Ý¤@¤U
·PÁÂ
|
|
|
|
|
|
|
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
¥»©«³Ì«á¥Ñ jj369963 ©ó 2013-11-1 22:03 ½s¿è
¦^´_ 3# GBKEE
sorryÁÂÁ´£¿ô¡A¦pªþÀÉ
¤]ÁÂÁª©¤jªº¿n·¥¦^À³
test_m.rar (62.78 KB)
|
|
|
|
|
|
|
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
¦^´_ 2# kimbal
Dear kimbal ª©¤j :
Thanks your reply, but it didn't work.
1.¸ê®Æµ§¤Ö®É¡A¦³·h²¾¦ý¬O¥¼·h²¾§¹¥þ
2.¸ê®Æµ§¦h®É§¹¥þ¨S¤ÏÀ³
¦pªþÀÉ¡A½Ð°Ñ¾\
reply_1.rar (65.11 KB)
|
|
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# jj369963
ªþÀɦ³2ÓÀÉ®×(¤u§@ªí¦WºÙ³£¬Û¦P)¦³¦P®É¶}±Ò,°õ¦æEXµ{¦¡¶Ü?- Option Explicit
- Sub Ex()
- Dim Sh(1 To 2) As Worksheet, i As Integer, R As Integer
- Set Sh(1) = ThisWorkbook.Sheets("µL±b±K") 'µ{¦¡½X©Ò¦b¬¡¶Ã¯ªº¤u§@ªí
- Set Sh(2) = ThisWorkbook.Sheets("µL§@µª")
- '****************************************************************
- 'Set Sh(1) = ActiveWorkbook.Sheets("µL±b±K") '§@¥Î¤¤¬¡¶Ã¯ªº¤u§@ªí
- '********************************************************************
- Sh(1).UsedRange.Clear
- Sh(2).UsedRange.Clear
- With ThisWorkbook.Sheets("sheet0") 'µ{¦¡½X©Ò¦b¬¡¶Ã¯ªº¤u§@ªí
- '****************************************************************
- 'With ActiveWorkbook.Sheets("sheet0") '§@¥Î¤¤¬¡¶Ã¯ªº¤u§@ªí
- '****************************************************************
- Sh(1).Rows(1) = .Rows(1).Value
- Sh(2).Rows(1) = .Rows(1).Value
- .Activate
- i = 2
- Do While .Cells(i, "a").FormatConditions.Count = 2 And .Cells(i, "a") <> ""
- '2003ª© Àx¦s®æ³]©w®æ¦¡¤Æ¥i¦³3Ó±ø¥ó¥i³]¤½¦¡
- .Cells(i, "a").Select '»Ý¦b³]©w®æ¦¡¤ÆªºÀx¦s,¤è¥ipºâ³]©w®æ¦¡¤Æ±ø¥ó¤½¦¡¬O§_¦¨¥ß
- If Application.Evaluate(.Cells(i, "a").FormatConditions(1).Formula1) Then 'pºâ³]©w®æ¦¡¤Æ²Ä1Ó±ø¥ó¤½¦¡¬O§_¦¨¥ß
- R = Sh(1).UsedRange.Rows.Count + 1 'pºâ UsedRange.Rows ªºÁ`¼Æ+1
- Sh(1).Rows(R) = .Cells(i, "a").EntireRow.Value
- ElseIf Application.Evaluate(.Cells(i, "a").FormatConditions(2).Formula1) Then 'pºâ³]©w®æ¦¡¤Æ²Ä2Ó±ø¥ó¤½¦¡¬O§_¦¨¥ß
- R = Sh(2).UsedRange.Rows.Count + 1
- Sh(2).Rows(R) = .Cells(i, "a").EntireRow.Value
- End If
- i = i + 1
- Loop
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
¦^´_ 7# GBKEE
Dear GBKEEª©¤j¡G
±z¦n
ªþÀɦ³2ÓÀÉ®×(¤u§@ªí¦WºÙ³£¬Û¦P)¦³¦P®É¶}±Ò,°õ¦æEXµ{¦¡¶Ü?
¦^ÂСG§Ú¨S¦³¦P®É¶}±Ò
¥t¥~°õ¦æ»yªk«á¥u¦³¼ÐÃD¦C²¾¹L¥h¡A®æ¦¡¤Æªº¦C¨S¦³²¾¨ì¹ïÀ³ªºsheet
³o¦¸¨S¦³¶]¥X¿ù»~µøµ¡
¤£ª¾°ÝÃD¦bþ??
¦A·Ð½Ð¦³ªÅ¤§¾l¡A«ü±Ð»P¨ó§U
·PÁÂ
test_m_1.rar (62.79 KB)
|
|
|
|
|
|
|
- ©«¤l
- 147
- ¥DÃD
- 46
- ºëµØ
- 0
- ¿n¤À
- 205
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-3-19
- ³Ì«áµn¿ý
- 2021-5-21
|
¥»©«³Ì«á¥Ñ jj369963 ©ó 2013-11-3 18:10 ½s¿è
¦^´_ 9# GBKEE
Dear GBKEEª©¤j:
±z¦n
1.´ú¸Õ«á¡A¥u·h²¾¼ÐÃD¦C¡A®æ¦¡¤Æªº¦C¨Ã¥¼·h²¾
ÁÂÁ¡A¦A·Ð½Ð«ü±Ð
¥t¥~³o¬O§Ú¥Î¿ý»s°µªº»yªk¨Ó®M¥Î¡A¤]¥X¿ù¡A¦ý®É¦³®É¦³§â³¡¤À¦C²¾¹L¥h¡A
¦A³Ò·Ð±z¬Ý¤@¤U¤F¡A·PÁÂ- Sub Macro1()
- '
- Cells.Select
- Selection.AutoFilter
- ActiveSheet.Range("$A$1:$CQ$376").AutoFilter Field:=6, Criteria1:=RGB(250, _
- 192, 144), Operator:=xlFilterCellColor
- Selection.Copy
- Sheets("µL§@µª").Select
- ActiveSheet.Paste
- Sheets("Sheet0").Select
- Application.CutCopyMode = False
- Rows("59:411").Select
- Selection.Delete Shift:=xlUp
- ActiveSheet.Range("$A$1:$CQ$370").AutoFilter Field:=6, Criteria1:=RGB(3, _
- 255, 101), Operator:=xlFilterCellColor
- Selection.Copy
- Application.CutCopyMode = False
- Selection.Copy
- Rows("1:338").Select
- Application.CutCopyMode = False
- Selection.Copy
- Sheets("µL±b±K").Select
- ActiveSheet.Paste
- Sheets("µL±b±K").Select
- Rows("18:402").Select
- Application.CutCopyMode = False
- Rows("18:18").Select
- ActiveWindow.SmallScroll Down:=-3
- Rows("18:402").Select
- Selection.Delete Shift:=xlUp
- Selection.AutoFilter
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|