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

½Ð°Ý¡GÃö©ó­×§ïVBA»yªk

¦^´_ 15# GBKEE
Dear ª©¥D,
¤F¸Ñ¤F¡A­è­è¥J²Ó¬Ý¤FVBA»yªk¤j·§ª¾¹D­þ¤@¬q¬O¦b°µ¬Æ»ò°Ê§@¤F¡A·PÁ±zªº¸Ô²Ó¸Ñ»¡¡I
Just do it.

TOP

¦^´_ 15# GBKEE
Dear ª©¤j±z¦n,
«Ü©êºp¤@ª½½Ð±Ð±z°ÝÃD¡C
±z¥i¥HÀ°§Ú³æ¿W¼g¤@­Ó(§Ú·Q¥ý¾Ç²ß³o¤@³¡¤À)

¸ê®Æcopy¨ì¥t¤@¤u§@ªí(³o¤u§@ªíªº¸ê®Æ¬O«ùÄò¦³¸ê®Æ²Ö­pªº¡A¸ê®Æ¥u·|Åܧó¦h)
­n«ç»ò¥ÎVBA¼g¦Ü¸Ó¤u§@ªí
¤u§@ªí"VBA"±qAÄæ¨ìHÄæ­nCOPY¨ì¤u§@ªí"¸ê®Æ®w"¤¤
*­ì¤u§@ªí"¸ê®Æ®w"¤¤ªº¸ê®Æ¤´­n«O¯d

Àɮצpªþ¥ó

TT-2.rar (140.07 KB)
Just do it.

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2018-2-8 07:08 ½s¿è

¦^´_ 14# jsc0518
  1. Option Explicit
  2. Sub Step1()
  3.     Dim E As Range, Rng As Range
  4.     With Sheets("vba")  'With ³¯­z¦¡ ¦b¤@­Ó³æ¤@ª«¥ó©Î¤@­Ó¨Ï¥ÎªÌ¦Û­q«¬ºA¤W°õ¦æ¤@¨t¦Cªº³¯­z¦¡¡C
  5.         '1*****³B²z­n§R°£ªº¦C ªº°j°é****************
  6.         For Each E In .UsedRange.Columns("A:C").Rows
  7.              'UsedRange ÄÝ©Ê·|¶Ç¦^ Range ª«¥ó¡A¦¹ª«¥ó¥Nªí«ü©w¤u§@ªí¤Wªº¤w¥Î½d³ò
  8.             If (Not IsDate(E.Cells(1)) And E.Cells(1) <> "") Or E.Cells(2) <> "" Or Application.CountA(E.Cells) = 0 Then
  9.                 If Rng Is Nothing Then   'Nothing ÃöÁä¦r¬O¥Î¨Ó±N¤@­Óª«¥óÅܼƱq¤@­Ó¹ê»Úªºª«¥óùؤÀÂ÷¶}¨Ó
  10.                    Set Rng = E   'Set(³]©wÅܼƬ°ª«¥ó)  ­n§R°£ªº¦C(ª«¥ó)«ü©w¨ìÅܼÆ
  11.                 Else    'Not Nothing
  12.                     Set Rng = Union(Rng, E)  'Application.Union ¤èªk ·|¶Ç¦^¨â­Ó¥H¤W½d³òªºÁp¶°¡C
  13.                 End If
  14.             End If
  15.         Next
  16.         If Not Rng Is Nothing Then Rng.EntireRow.Delete   '
  17.             'Range.EntireRow ÄÝ©Ê·|¶Ç¦^ Range ª«¥ó¡A¦¹ª«¥ó¥Nªí¥]§t«ü©w½d³òªº¾ã­Ó¦C (©Î­Y¤z¦C)¡C
  18.         '2***********AÄ榳ªÅ¥Õ¶ñ¤W¤é´Á   *******************************
  19.         For Each E In Range("a1:a" & Cells(Rows.Count, 2).End(xlUp).Row)
  20.             If E(1, 3) <> "" And E = "" Then E = E.Cells(0)
  21.         Next
  22.         '3********«ü©w­n½Æ»sªº½d³ò*********************************
  23.        Set Rng = .UsedRange   'Sheets("vba")¤W¤w¨Ï¥Îªº½d³ò¬° "A:H"
  24.     End With
  25.     '4**************«ü©wªº½d³ò½Æ»s¨ì«ü©w¦ì¸m **********************
  26.     With Sheets("¸ê®Æ®w").Range("b1").End(xlDown).Offset(1)
  27.         'Range.End ÄÝ©Ê ¶Ç¦^ Range ª«¥ó¡A¸Óª«¥ó¥Nªí¥]§t¨Ó·½½d³ò¤§°Ï°ìµ²§À³BªºÀx¦s®æ¡C
  28.         'µ¥©ó«ö END+¦V¤WÁä¡BEND+¦V¤UÁä¡BEND+¦V¥ªÁä©Î END+¦V¥kÁä
  29.    
  30.         'Range.Offset ÄÝ©Ê ·|¶Ç¦^ Range ª«¥ó¡A¥Nªí±q«ü©w¤§½d³ò¦ì²¾ªº½d³ò
  31.         Rng.Copy .Cells
  32.     End With
  33. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 12# GBKEE
Dear ª©¥D
©êºp¦A»P±z½Ð±Ð¤@­Ó°ÝÃD¡A§Ú·Q§â¾ã²z¹L«á¤§¸ê®Æcopy¨ì¥t¤@¤u§@ªí(³o¤u§@ªíªº¸ê®Æ¬O«ùÄò¦³¸ê®Æ²Ö­pªº¡A¸ê®Æ¥u·|Åܧó¦h)
­n«ç»ò¥ÎVBA¼g¦Ü¸Ó¤u§@ªí
¤u§@ªí"VBA"±qAÄæ¨ìHÄæ­nCOPY¨ì¤u§@ªí"¸ê®Æ®w"¤¤
*­ì¤u§@ªí"¸ê®Æ®w"¤¤ªº¸ê®Æ¤´­n«O¯d
    TT-2.rar (139.92 KB)
Just do it.

TOP

¦^´_ 12# GBKEE
Dear ª©¥D,
ÁÂÁ±zªº«ü¾É
Just do it.

TOP

¦^´_ 11# jsc0518
¨âªÌ³£¥i¥H
  1. With ActiveSheet.UsedRange.Columns("A")
  2.         If .Cells(1).End(xlDown).End(xlDown).Row <> Rows.Count Then  '§PÂ_¦³ªÅ¥ÕªºÀx¦s®æ
  3.             .SpecialCells(xlCellTypeBlanks).Cells = "=R[-1]C"                        '¨S¦³ªÅ¥ÕªºÀx¦s®æ .SpecialCells(xlCellTypeBlanks) µ{¦¡·|¿ù»~
  4.             .Value = .Value
  5.         End If
  6.    End With
½Æ»s¥N½X
  1.     For Each E In ActiveSheet.UsedRange.Columns("A").Cells
  2.         If E(1, 3) <> "" And E = "" Then E = E.Cells(0)      
  3.       'E(1, 3) => E.Cells(1, 3) ,E.Cells(0)=> E.Cells(0, 1) ** 0 -> ¤W¤@¦C
  4.     Next
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 10# GBKEE
Dear ª©¥D¡ATEST OK
¥t¥~½Ð±Ð¤@¤U¡A­þ¤@¬q»yªk¬O±NAÄæ¦C¤é´Á¤UªÅ¥ÕÄæ®É¬°¦Û°Ê½Æ»s¤W¤@Äæ¤é´Á¡H
Just do it.

TOP

¦^´_ 9# jsc0518
§Aªºªí®æ¦³²Ä¤@µ§¸ê®Æ¶}©lAÄæ¨S¦³¤é´Á©Ò­P
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Step1()
  3.     Dim E As Range, Rng As Range
  4.     For Each E In ActiveSheet.UsedRange.Columns("A:C").Rows
  5.        If (Not IsDate(E.Cells(1)) And E.Cells(1) <> "") Or E.Cells(2) <> "" Or Application.CountA(E.Cells) = 0 Then
  6.             If Rng Is Nothing Then
  7.                 Set Rng = E
  8.             Else
  9.                 Set Rng = Union(Rng, E)
  10.             End If
  11.         End If
  12.     Next
  13.     If Not Rng Is Nothing Then Rng.EntireRow.Delete
  14.     For Each E In Range("a1:a" & Cells(Rows.Count, 2).End(xlUp).Row)
  15.         If E(1, 3) <> "" And E = "" Then E = E.Cells(0)
  16.     Next
  17. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 7# GBKEE
Dear ª©¥D
§Ú¥Î±z±Ð¾ÉVBA¥h°õ¦æ¡A»P§Ú¦Û¤v¥Î¤â°Ê§R°£«á¤§µ²ªG¼Æ¾Ú¦³®t²§

VBA°õ¦æ«á¥[Á`JÄæ¦ì®w¦s¼Æ¾Ú
VBA.jpg
   
¤â°Ê§R°£Äæ¦C¡A¥[Á`JÄæ¦ì®w¦s¼Æ¾Ú
¤â.jpg

ªþÀÉ®×
TT.rar (144.61 KB)

½ÐÀ°¦£¬Ý¤@¤U¡I·P®¦¡I
Just do it.

TOP

¦^´_ 7# GBKEE
Deae ª©¥D,
TEST OK¡A±z¯uªº¦n¯«¼Ú
¯uªº«Ü·PÁ±zªºÀ°¦£¡I
Just do it.

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD