½Ð°Ý¦U¦ì¤j¯«¥[§Ö VBA §R°£¬°0ªºÀx¦s®æ¤½¦¡ªºµ{¦¡¼gªk
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
½Ð°Ý¦U¦ì¤j¯«¥[§Ö VBA §R°£¬°0ªºÀx¦s®æ¤½¦¡ªºµ{¦¡¼gªk
¥H¤U¬O§Úª¦¤å§ì¨ìªº¡A¦ý¹ê¥Î«á¶]ÀÉ®×10MB¡A
¤u§@ªí¤¤ DÄæ §PÂ_¨Ã§R°£ 100µ§¥ª¥k0ªº¤½¦¡¸ê®Æ¡Aªá¤F7¤ÀÄÁ¡A
½Ð°Ý¦p¦ó¥[§Öµ{¦¡½X¶]ªº³t«×©O?
¦p¦ó¥[§Ö¦¹ VBA Module10 µ{¦¡ªº³t«×©O?
Sub TT()
Dim t1
t1 = Timer '³o¬O²£¥Í¬í¼Æªº MSG
'==============================================================
'§R°£ D Äæ(Àx¦s®æ O2~O101)¬°0®ÉªºÀx¦s®æ¤½¦¡¸ê®Æ
Range("D2").Select
For X = 1 To 1
For y = 2 To 101
If ActiveCell(y, X) = 0 Then
ActiveCell(y, X) = ""
Else
End If
Next y
Next X
'¥H¤U¬°Åã¥ÜVBA Runµ{¦¡ªº®É¶¡ + ³o¬O²£¥Í¬í¼Æªº MSG
MsgBox "§ì¸ê®Æ§¹¦¨! " & Chr(10) & "¨Ï¥Î®É¶¡¡G" & Round(Timer - t1, 2) & " ¬í" & Chr(10) & "±z¿é¤Jªº±ø¥ó¤ñ¹ï«á¡A¦@p¦³" & " " & Application.CountA(Sheets("¤ñ¹ï¼t½s«á¸ê®Æ").Columns("A:A")) - 1 & " " & "µ§¸ê®Æ"
'¥H¤U¬°²£¥ÍMsgbox »¡©ú¤ñ¹ï«á¦³´Xµ§¤£«½Æªº¸ê®Æ
'MsgBox "±z¿é¤Jªº" & "±ø¥ó" & "¤ñ¹ï«á¡A¦@p¦³" & " " & APplication.CountA(Sheets("¤ñ¹ï¼t½s«á¸ê®Æ").Columns("A:A")) - 1 & " " & "µ§¸ê®Æ"
End Sub
'==============================================================
ÀɮפU¸ü¡G
ABC 20191219-V.04ª©.rar (167.63 KB)
|
|
|
|
|
|
|
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
'§R°£ D Äæ(Àx¦s®æ D2~D101)¬°0®ÉªºÀx¦s®æ¤½¦¡¸ê®Æ
À³¸Ó¬O D2 ~ D101 |
|
|
|
|
|
|
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
¤£¦n·N«ä¡A¬O§Ú¥t¤@Ó¼Ò½k¬d¸ßªí¸ê®Æ¦³3000µ§¾ÉP³t«×ÅܺC¡A§Ú¤w¸g±N¼Ò½k¬d¸ßªí¬d¸ß±ø¥ó§ï±¼Â«K«Ü§Ö¤F¡CÁÂÁ¦U¦ì¡C |
|
|
|
|
|
|
- ©«¤l
- 79
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 148
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- EXCEL 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-21
- ³Ì«áµn¿ý
- 2023-3-13
|
¥»©«³Ì«á¥Ñ adrian_9832 ©ó 2019-12-20 21:10 ½s¿è
°²³] ¨C¦¸D¨º¦æ 0 ¼ÆȨº¦æªº¸ê®Æ ¨S¦³¤¤Â_ ¦Ó¥B¸ê®Æ³£¬O ¤@ª½¬O0 ¦Ó¥B¤£·| 0 0 0 0 ¤§«á¤£¬O 0 ¦A¤§«á¤S¬O 0
Sub test()
i = 2
Do Until Cells(i, 4) = ""
If Cells(i, 4) = "0" Then
Count = Count + 1
Else
Start = i
End If
i = i + 1
Loop
Range("d" & Start + 1 & ":" & "d" & Count + 10).Select
Selection.ClearContents
End Sub
³Ì«á´£¿ô¤@¤U ¥H¤W¥u¥i¥H¦b ¤@¦æ ³£¬O 0 ¤~¯à¥Î
¤ñ¦p¥H¤U³o¼Ë:
111
222
333
abc
123aft
2t1111
0
0
0
0
0
0
0
0
0
0
0
0
....
¦Ó¤£¬O³o¼Ë±¡ªp¤U¥Î
0
0
0
1
0
1
0
1
0
1
0
1
0
0
0
1
0
1 |
-
-
Â^¨ú.PNG
(86.44 KB)
|
|
|
|
|
|
- ©«¤l
- 79
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 148
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- EXCEL 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-21
- ³Ì«áµn¿ý
- 2023-3-13
|
¥»©«³Ì«á¥Ñ adrian_9832 ©ó 2019-12-20 21:23 ½s¿è
- ¤èªk2:
- Sub test2()
- Columns("D:D").Select
- Selection.SpecialCells(xlCellTypeFormulas, 1).Select
- Selection.ClearContents
- End Sub
½Æ»s¥N½X ³o¥i¥H¹j¸ê®Æ ¦Ó¥B²³æ §Ö±¶ |
|
|
|
|
|
|
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
¦^´_ 4# adrian_9832
¤j¤j±z¦n¡G¹ê´úµ²ªG¬OOKªº¡A§Úªº¹q¸£³t«×¬ù70¬í¡C·PÁ¤j¤jªº«ü¾É¤À¨É¡C |
|
|
|
|
|
|
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
¦^´_ 5# adrian_9832
¤j¤j±z¦n¡G¹ê´úµ²ªG¬OOKªº¡A§Úªº¹q¸£³t«×¤]¬O¬ù70¬í¡C·PÁ¤j¤jªº«ü¾É¤À¨É¡C |
|
|
|
|
|
|
- ©«¤l
- 154
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 200
- ÂI¦W
- 28
- §@·~¨t²Î
- windwos 7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-5-29
- ³Ì«áµn¿ý
- 2024-10-22
|
|
|
|
|
|
|
- ©«¤l
- 228
- ¥DÃD
- 62
- ºëµØ
- 0
- ¿n¤À
- 364
- ÂI¦W
- 20
- §@·~¨t²Î
- Win 10
- ³nÅ骩¥»
- Office 2007 & 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-3-5
- ³Ì«áµn¿ý
- 2024-9-16
|
¦^´_ 8# quickfixer
·PÁ¤j¯«ªº¨ó§U¡A¶W·P¿Eªº¡C |
|
|
|
|
|
|