Skip to main content

AccessTr.neT


F9 İle Güncellenen Değer Korunabilir Mi?

F9 İle Güncellenen Değer Korunabilir Mi?

#9
Alttaki kodu bir modüle ekleyip çalıştırın.
Doğru anladımmı bilemiyorum yinede.
Koddaki Wahr yerlere DOĞRU olarak değiştirin.

Sub F9_Ata()
    Dim i As Long, son As Long
   
    With ThisWorkbook.Sheets("table1")
        son = .Cells(Rows.Count, 1).End(3).Row
        If son < 2 Then Exit Sub
        For i = 2 To son
            Do While .Cells(i, "G").Value <> "Wahr"
                Application.Calculate
                If .Cells(i, "G").Value = "Wahr" Then
                  .Range("D" & i & ":" & "G" & i).Value = .Range("D" & i & ":" & "G" & i).Value
                    GoTo var
                End If
            Loop
var:
            If .Cells(i, "G").Value = "Wahr" Then
                .Range("D" & i & ":" & "G" & i).Value = .Range("D" & i & ":" & "G" & i).Value
            End If
        Next
    End With
    MsgBox "Bitti"
  End Sub
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Re: F9 İle Güncellenen Değer Korunabilir Mi? - Yazar: feraz - 18/01/2021, 23:20
Task