ªð¦^¦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 : ¬O«D·í±Ð¨|¡AÆg¬ü§@ĵ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD