- Katılım
- 5 Kasım 2007
- Mesajlar
- 4,727
- Excel Vers. ve Dili
- 64 Bit TR - Microsoft Office 365 - Win11 Home
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub tabloya_dagit()
Dim S1 As Worksheet, Wf As WorksheetFunction, sat As Long, son As Long, c As Range, Adr As String
Set S1 = Sheets("BÖLGELER")
Set Wf = WorksheetFunction
Application.ScreenUpdating = False
Sheets("İL_PLANLAMA").Select
Range("D3:I33").ClearContents
sat = Application.Max(Range("A3:A33")) + 2
For i = 4 To 9
Set c = S1.Rows(1).Find(Cells(2, i), , xlValues, xlWhole)
If Not c Is Nothing Then
son = S1.Cells(Rows.Count, c.Column).End(xlUp).Row - 1
For j = 3 To sat
Cells(j, i) = Wf.Index(S1.Cells(2, c.Column).Resize(son, 1), Wf.RandBetween(1, son))
Next j
End If
Next i
End Sub
Sub tabloya_dagit()
Dim S1 As Worksheet, Wf As WorksheetFunction, sat As Long, son As Long, c As Range, Adr As String
Set S1 = Sheets("BÖLGELER")
Set Wf = WorksheetFunction
Application.ScreenUpdating = False
Sheets("İL_PLANLAMA").Select
Range("D3:I33").ClearContents
sat = Application.Max(Range("A3:A33")) + 2
For i = 4 To 9
If Cells(2, i) <> "" Then
Set c = S1.Rows(1).Find(Cells(2, i), , xlValues, xlWhole)
If Not c Is Nothing Then
son = S1.Cells(Rows.Count, c.Column).End(xlUp).Row - 1
For j = 3 To sat
Cells(j, i) = Wf.Index(S1.Cells(2, c.Column).Resize(son, 1), Wf.RandBetween(1, son))
Next j
End If
End If
Next i
End Sub
Sub tabloya_dagit()
Dim S1 As Worksheet, Wf As WorksheetFunction, sat As Long, son As Long, c As Range, Adr As String
Set S1 = Sheets("BÖLGELER")
Set Wf = WorksheetFunction
Application.ScreenUpdating = False
Sheets("İL_PLANLAMA").Select
Range("D3:I33").ClearContents
sat = Application.Max(Range("A3:A33")) + 2
For i = 4 To 9
If Cells(2, i) <> "" Then
Set c = S1.Rows(1).Find(Cells(2, i), , xlValues, xlWhole)
If Not c Is Nothing Then
son = S1.Cells(Rows.Count, c.Column).End(xlUp).Row - 1
If son > 0 Then
For j = 3 To sat
Cells(j, i) = Wf.Index(S1.Cells(2, c.Column).Resize(son, 1), Wf.RandBetween(1, son))
Next j
End If
End If
End If
Next i
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim son As Byte
If Intersect(Target, [B1]) Is Nothing Then Exit Sub
son = Day(DateSerial(Year(Target), Month(Target) + 1, 0))
Application.ScreenUpdating = False
Range("A3:C33").ClearContents
Range("A3") = 1
Range("B3") = Target
Range("A3").Resize(son, 1).DataSeries Type:=xlLinear, Step:=1
Range("B3").Resize(son, 1).DataSeries Type:=xlChronological, Date:=xlDay, Step:=1
Range("C3").Resize(son, 1) = "=TEXT(B3, ""gggg"")"
Range("C3").Resize(son, 1) = Range("C3").Resize(son, 1).Value
End Sub