...On Error Resume Next
DsyYol = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\Emr"
If Dir(DsyYol, vbDirectory) = "" Then MkDir (DsyYol)
For i = 2 To Cells(Rows.Count, 5).End(3).Row
If Cells(i, 5).Value <> "" And WorksheetFunction.CountIf(Range([E2]...
...On Error Resume Next
DsyYol = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\Emr"
If Dir(DsyYol, vbDirectory) = "" Then MkDir (DsyYol)
For i = 1 To Sheets("Sayfa2").Cells(Rows.Count, 1).End(3).Row
If Sheets("Sayfa2").Cells(i, 1).Value <> "" Then...
...& "'!" & Range("A1").Address(, , xlR1C1))
If UCase(Kosul) = "AÇ" Then
If Dir(Hedef_Yol, vbDirectory) = "" Then MkDir Hedef_Yol
On Error Resume Next
Set WB = Application.Workbooks.Item(Dosya_Adi)
On Error GoTo 0
If Not WB...
Makroyu denedim gerçekten çok hızlı.
Diğeri her defa aç kapa aç kapa şeklinde yapıyor.
Bunda hemen sonuçlanıyor.
Öncelikle metin içine veri çağırırken nasıl bir yol izlemeliyim?
...... ala ... tl gibi.
O kısımlara hücre oluşturup mu atlamalıyım? Teşekkürler.
Yukarıdaki hatanın sebebini buldum.
Makronun birinde alttaki pasif olarak yazdığım kod var, sonda aktif kodu eksik kalmış. Ekledim düzeldi.
Pasif
With Application
.DisplayAlerts = False
.ScreenUpdating = False
.Calculation = xlManual
End With
Aktif
With...
...= ThisWorkbook.Path & "\Tutanak\"
kaydet1 = ThisWorkbook.Path & "\Tutanak\Uzlaşma Tutanakları\"
If Len(Dir(kaydet2, vbDirectory)) = 0 Then MkDir kaydet2
If Len(Dir(kaydet1, vbDirectory)) = 0 Then MkDir kaydet1
For i = 2 To sonsatir
Set msword = CreateObject("word.application")...
...= ThisWorkbook.Path & "\Tutanak\"
kaydet1 = ThisWorkbook.Path & "\Tutanak\Uzlaşma Tutanakları\"
If Len(Dir(kaydet2, vbDirectory)) = 0 Then MkDir kaydet2
If Len(Dir(kaydet1, vbDirectory)) = 0 Then MkDir kaydet1
For i = 2 To sonsatir
Set msword = CreateObject("word.application")...
...= ThisWorkbook.Path & "\Tutanak\"
kaydet1 = ThisWorkbook.Path & "\Tutanak\Uzlaşma Tutanakları\"
If Len(Dir(kaydet2, vbDirectory)) = 0 Then MkDir kaydet2
If Len(Dir(kaydet1, vbDirectory)) = 0 Then MkDir kaydet1
For i = 2 To sonsatir
Set msword = CreateObject("word.application")...
...= [B1978] & ".pdf"
Case 65
PdfName = [B2009] & ".pdf"
End Select
If Len(PdfName) < 6 Then MsgBox "Sayfa İsmi Eksik": Exit Sub
ad = Range("aa2")
MkDir Environ("USERPROFILE") & "\Desktop" & "\" & ad
yol = Environ("USERPROFILE") & "\Desktop" & "\" & ad
ActiveSheet.ExportAsFixedFormat...
...Private Sub CreateDirectory(FolderPath)
On Error GoTo ErrHandler
If Dir(FolderPath, vbDirectory) = "" Then MkDir FolderPath
Exit Sub
ErrHandler:
MsgBox ("hata")
End Sub
...anahedef = "S:\TRT\Prostat_Kanseri_PSMA\" & mystr & "XX\"
DosyaAdi = tbDosyaAdi.Value
If Len(Dir(anahedef, vbDirectory)) = 0 Then
MkDir anahedef
End If
hedef = anahedef & DosyaAdi
kaynak = "S:\TRT\SABLONLAR\BOSPCA.XLSM"
If Len(Dir(hedef, vbDirectory)) = 0 Then
MkDir hedef
Shell...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.