DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
3 - YENİ KAYDEDİLEN DOSYA, İSMİNİ BU SAYFADAKİ O8 HÜCRESİNDEN ALMALI (11/507-30619)
Sub sayfayikaydet()
klasor = ThisWorkbook.Path
Set s1 = Sheets("TEKLİF")
Application.ScreenUpdating = False
Application.DisplayAlerts = False
s1.Copy
If Val(Application.Version) > 11 Then
ActiveWorkbook.SaveAs Filename:=klasor & "\" & Replace(s1.[o8], "/", "-") & ".xls", FileFormat:=xlExcel8
Else
ActiveWorkbook.SaveAs Filename:=klasor & "\" & Replace(s1.[o8], "/", "-") & ".xls"
End If
ActiveSheet.DrawingObjects.Delete
ActiveSheet.Range([t:t], [t:t].End(xlToRight)).Clear
ActiveSheet.Range([t:t], [t:t].End(xlToRight)).EntireColumn.Hidden = True
ActiveSheet.Range([56:56], [56:56].End(xlDown)).Clear
ActiveSheet.Range([56:56], [56:56].End(xlDown)).EntireRow.Hidden = True
For Each modul In ActiveWorkbook.VBProject.VBComponents
Set modul = ActiveWorkbook.VBProject.VBComponents(modul.Name)
If modul.Type = 100 Then
Set kodmodul = modul.CodeModule
modul.CodeModule.DeleteLines 1, kodmodul.CountOfLines
End If
Next
ActiveSheet.Cells.Locked = True
ActiveSheet.[o8:s11].Locked = False
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:=False
ActiveWorkbook.Close True
Application.ScreenUpdating = True
End Sub
elinize sağlık çok süper oldu. yalnız bir sorum dahaolacak. kaydetme yeri olarak belirlediğim yerdeki bir klasörü verebilirmiyim?
klasor = ThisWorkbook.Path