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

[µo°Ý] «ç»ò¨ú¦³ÃC¦âÀx¦s®æ¤ºªº­È

§Ú¸ÕµÛ¥ÎMACRO¿ý»s¦³¦¨¥\¨úªºÀx¦s®æ(¬õ¦â)ªº­È.
³æ¤@¦æ¥i¥H¦¨¥\,¨º¦h¦æªº¸Ü­n«ç»ò­×§ï¨úªº¦h¦æªº­È.
½Ð¤j¤j¦A¦¸«ü¾É

  1. Sub Macro7()
  2. '
  3.      With Application.FindFormat.Interior
  4.         .PatternColorIndex = xlAutomatic
  5.         .Color = 255
  6.         .TintAndShade = 0
  7.         .PatternTintAndShade = 0
  8.     End With
  9.     Cells.Find(What:="", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
  10.         xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
  11.         , SearchFormat:=True).Activate
  12.     Sheets("Sheet1").Select
  13.     Range("A8:AJ8").Select
  14.     Selection.Copy
  15.     Sheets("Sheet2").Select
  16.     ActiveSheet.Paste
  17. End Sub
½Æ»s¥N½X

TOP

ÁÂÁ¤j¤jÀ°¦£.

§Ú°õ¦æ«á¦³¥X²{¤U¦C°T®§,§Ú­n¦A­×§ï¦ó³B?

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-8-14 14:55 ½s¿è

¦^´_ 1# sunland





¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim A As Range, A_Po As String
  4.     Dim AA As Range
  5.    
  6.     'FindFormat ÄÝ©Ê ³]©w©Î¶Ç¦^­n´M§ä¤§Àx¦s®æ®æ¦¡Ãþ«¬ªº·j´M·Ç«h¡C
  7.     With Application.FindFormat
  8.         .Clear                      '²M°£¥H«eªº³]©w
  9.        ' .Interior.Color = vbred    '³]©wÀx¦s®æ¹Ï¼ËÃC¦â(¬õ¦â)
  10.         .Interior.ColorIndex = 3   '³]©wÀx¦s®æ¹Ï¼ËÃC¦â(¬õ¦â)
  11.        '.Font.Bold = True           '²ÊÅé
  12.        '.Font.Size = 12             '¦r«¬¤j¤p
  13.     End With
  14.    
  15.     Set A = Cells.Find("", AFTER:=Cells(Cells.Count), SearchFormat:=True) 'SearchFormat   ¿ï¾Ü©Êªº Variant¡C·j´Mªº®æ¦¡¡C
  16.     Do While Not A Is Nothing
  17.         If A_Po = "" Then
  18.             A_Po = A.Address
  19.             Set AA = A
  20.         End If
  21.         Set AA = Union(AA, A)
  22.         Set A = Cells.Find(What:="", AFTER:=A, SearchFormat:=True) '¤U¤@­Ó¬Û¦P®æ¦¡·j´M
  23.         If A_Po = A.Address Then Exit Do
  24.     Loop
  25.     If Not A Is Nothing Then AA.Copy Sheets("¥Ø¼Ð¤u§@ªí").Range("A1")
  26. End Sub
  27. Sub Ex_A()  '§äÃC¦â ColorIndex ¥i¦p¦¹±o¨ì
  28.     MsgBox Range("A1").Interior.ColorIndex
  29. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤Ó¶§¥ú¤j¡B¤÷¥À®¦¤j¡B§g¤l¶q¤j¡A¤p¤H®ð¤j¡C
ªð¦^¦Cªí ¤W¤@¥DÃD