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

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

قام بنشر (معدل)

السلام عليكم السادة المحترمين ............. كيف يمكن استعادة الايقونة ليتم فتح الاكسيل من قائمة  جديد 

مع الشكر للجميع 

77.jpg

تم تعديل بواسطه الشربيني 123
قام بنشر

وعليكم السلام ورحمة الله وبركاته

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

لوحة التحكم -البرامج والميزات -  انقر بزر الفارة اليمين على microfoft office - نغيير - اصلاح - ثم اتبع الخطوات

قام بنشر

Navigate to this directory [C:\Program Files (x86)\Microsoft Office\root\vfs\Windows\SHELLNEW] and make sure the file named [EXCEL12.xlsx] exists

image.png.d757df295cda49a4ad1a4ab9d5ce1e1c.png

 If the file doesn't exist download it from the post (I will attach it for you) then copy it to the directory in the above screenshot

 

Create an excel shortuct and right-click on it and select [Run as administrator] 

image.png.be10b2de20e51723b0225053675c0449.png

 

Finally execute the following code

Sub Test()
    Const SEXCELFILE As String = "EXCEL12.xlsx"
    Dim subKeys, WshShell As Object, fso As Object, baseKeyPath As String, sFullKeyPath As String, sDestFile As String, sSourceFile As String, i As Integer
    Set WshShell = CreateObject("WScript.Shell")
    baseKeyPath = "HKEY_CURRENT_USER\Software\Classes\"
    subKeys = Array(".xlsx\", "Excel.Sheet.12\", "ShellNew\")
    sFullKeyPath = baseKeyPath
    For i = LBound(subKeys) To UBound(subKeys)
        sFullKeyPath = sFullKeyPath & subKeys(i)
        If Not RegKeyExists(WshShell, sFullKeyPath) Then WshShell.RegWrite sFullKeyPath, ""
    Next i
    sDestFile = "C:\Program Files (x86)\Microsoft Office\root\vfs\Windows\SHELLNEW\" & SEXCELFILE
    Set fso = CreateObject("Scripting.FileSystemObject")
    If Not fso.FileExists(sDestFile) Then
        sSourceFile = ThisWorkbook.Path & "\" & SEXCELFILE
        If fso.FileExists(sSourceFile) Then
            fso.CopyFile sSourceFile, sDestFile
        Else
            MsgBox "Source File '" & SEXCELFILE & "' Not Found.", vbExclamation: Exit Sub
        End If
    End If
    WshShell.RegWrite sFullKeyPath & "FileName", sDestFile, "REG_SZ"
    Set WshShell = Nothing: Set fso = Nothing
    MsgBox "Done", vbInformation
End Sub

Function RegKeyExists(WshShell As Object, regKey As String) As Boolean
    On Error Resume Next
        WshShell.RegRead regKey
        RegKeyExists = (Err.Number = 0)
    On Error GoTo 0
End Function

 

 

EXCEL12.XLSX

  • Like 2

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