- Katılım
- 24 Temmuz 2007
- Mesajlar
- 726
- Excel Vers. ve Dili
- Excel 2010 tr
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub sec()
son = Cells(65536, 1).End(xlUp).Row
For i = 1 To son
If Cells(i, 1).Interior.ColorIndex <> 6 Then
d = Cells(i, 1).Address
g = d & "," & g
alan = Mid(g, 1, Len(g) - 1)
Range(alan).Select
End If
Next
End Sub
Option Explicit
Sub ÇOKLU_HÜCRE_SEÇ()
Dim X As Long, ALAN As Range
For X = 1 To Range("A65536").End(3).Row
If Cells(X, 1).Interior.ColorIndex <> 6 Then
If ALAN Is Nothing Then
Set ALAN = Range(Cells(X, 1).Address)
Else
Set ALAN = Union(ALAN, Range(Cells(X, 1).Address))
End If
End If
Next
ALAN.Select
Set ALAN = Nothing
End Sub