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

[¤À¨É] excel¸ê®Æ®w§R°£­«½Æ¸ê®Æ

[¤À¨É] excel¸ê®Æ®w§R°£­«½Æ¸ê®Æ

excel¸ê®Æ®w,¿é¤J¸ê®Æ¦n©ö­«½Æ,§Q¥ÎADO+sql,»´»´ÃPªQ§R°£­«½Æªº¸ê®Æ

Sub iDo()
    Dim R As Range, A As Integer
     Set R = Range("A1").CurrentRegion.Rows(1)
    A = R.Interior.ColorIndex
       iPath = ActiveWorkbook.FullName
       iQ = "select distinct * from [" & ActiveSheet.Name & "$] order by ¤é´Á"
      Set iAddress = ActiveSheet.Range("A1")
    iSql
       R.Interior.ColorIndex = A
End Sub
lmh

¸ê®Æ®w§R°£­«½Æ¸ê®Æ.rar (16.64 KB)
lmh

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD