Mehmet Sait
Altın Üye
- Katılım
- 19 Ekim 2009
- Mesajlar
- 840
- Excel Vers. ve Dili
- Office 2016 TR
Merhaba,
Mevcut kodda " Find(Range("$M$8") " de ki tarihe göre işlem yapmakta. Çoğu zaman M8 hücresi boş olduğunda bile işlem yapıyor. Benim istediğim M8 boş ise, tarih giriniz diye uyarı versin. Kodlamada ne gibi değişiklik yapılması gerekir ?
Teşekkürler,
Kod:
Dim Bul As Range
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BE"), Cells(Bul.Row, "BE")).Value = Range("Q29").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BF"), Cells(Bul.Row, "BF")).Value = Range("AA29").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BG"), Cells(Bul.Row, "BG")).Value = Range("AH29").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BH"), Cells(Bul.Row, "BH")).Value = Range("Q30").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BI"), Cells(Bul.Row, "BI")).Value = Range("AA30").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BJ"), Cells(Bul.Row, "BJ")).Value = Range("AH30").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BK"), Cells(Bul.Row, "BK")).Value = Range("O34").Value
Set Bul = Range("BD:BD").Find(Range("$M$8"), , , xlWhole)
If Not Bul Is Nothing Then Range(Cells(Bul.Row, "BL"), Cells(Bul.Row, "BL")).Value = Range("AJ34").Value
Mevcut kodda " Find(Range("$M$8") " de ki tarihe göre işlem yapmakta. Çoğu zaman M8 hücresi boş olduğunda bile işlem yapıyor. Benim istediğim M8 boş ise, tarih giriniz diye uyarı versin. Kodlamada ne gibi değişiklik yapılması gerekir ?
Teşekkürler,
