ªð¦^¦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¥Í©R¦b©I§l¶¡¡j¦òªû»¡¡G¡u¥Í©R¦b©I§l¶¡¡C¡v¤HµLªkºÞ¦í¦Û¤vªº¥Í©R¡A§óµLªk¾×¦í¦º´Á¡AÅý¦Û¤v¥Ã¦í¤H¶¡¡C¬JµM¥Í©R¥h¨Ó³o»òµL±`¡A§Ú­Ì§óÀ³¸Ó¦n¦n¦a·R±¤¥¦¡B§Q¥Î¥¦¡B¥R¹ê¥¦¡AÅý³oµL±`¡BÄ_¶Qªº¥Í©R¡A´²µo¥¦¯uµ½¬üªº¥ú½÷¡A¬M·Ó¥X¥Í©R¯u¥¿ªº»ù­È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD