- Katılım
- 18 Ocak 2008
- Mesajlar
- 12,878
- Excel Vers. ve Dili
- 2003 excell türkçe
ve
2007 excell türkçe
bir başka alternatif kod D sutünundaki (REFEREANS
kelimesini esas alarak işlem yapıyor tabi 27 satır olarak alt satırı alıyor.
Sub PDF_kaydet2()
For i = 2 To Cells(Rows.Count, "B").End(3).Row
If Cells(i, "d").Value = "REFEREANS:" Then
sayfaadi = Cells(i, 2).Value
yer = Range("B" & i & ":E" & i + 26).Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\190500\Desktop\KG" & sayfaadi, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End If
Next
End Sub
