اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

طلب تعديل فى كود لعمل نسخة احتياطية


الردود الموصى بها

السلام عليكم ورحمة الله وبركاته
يااخوان اريد تعديل الكود عمل نسخة احتياطية لقاعدة البيانات مع  جميع  معادلة الورقة كاملة بي جميع المعدلة

بارك الله فيكم

 

 

 

 

 

Sub BillBackup()
    Dim Shp As Shape
    nm = [E5] & "_" & Day([E3]) & "_" & Month([E3]) & "_" & Year([E3])
    ActiveSheet.Copy
    
    ChDir "D:\test\"
    On Error GoTo 1
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:="D:\abdalwahd\" & nm & ".xlsx"

    For Each Shp In ActiveSheet.Shapes
        If Shp.Type = msoAutoShape Or Shp.Type = msoTextBox Then Shp.Delete
    Next Shp

    ActiveWorkbook.Save
    ActiveWindow.Close
1    Application.DisplayAlerts = True: Exit Sub
End Sub

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information