Sevgili Excel VBA gurulari!soyle ki:dim season as integerseason = month(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, -2) - Weekday(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, 3)) + Mid(Worksheets("new safety calculation")
Sevgili Excel VBA gurulari!
soyle ki:
dim season as integer
season = month(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, -2) - Weekday(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, 3)) + Mid(Worksheets("new safety calculation").Cells(1, x + 3).Value, 3, 2) * 7)
seklinde bir kodum var ve type mismatch hatasi veriyor. Bir yerde integer veya string uyumsuzlugu var ama nasil duzeltecegimi bilmiyorum. Yardimci olabilecek var mi?
Tesekkurler selamlar!
0
dim season
season = month(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, -2) - Weekday(DateSerial(Right(Worksheets("new safety calculation").Cells(1, x + 3).Value, 4), 1, 3)) + Mid(Worksheets("new safety calculation").Cells(1, x + 3).Value, 3, 2) * 7)
aynı zamanda bu değer bir integer üretir, x'e nasil bir deger atiyorsun ?
0
x e de integer demisim for dongusunde kullaniyorum. Ancak neden type mismatch hatasi veriyor ya da bir duzeltme yolu var mi?
0
🌸
schokopudding
(
09.07.12)
Dim season
Bu calişiyor, hucreye atadigin deger tarih degilse type mismatch aliyorsundur. Tum kolonun formatini tarihe cevirdin mi ?
0