A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Same thing happened to me today and I tried doing most of the 5 pages of things on this thread but nothing worked till I remembered PowerShell will do all of it better. Note: Run PowerShell as an administrator to avoid access restrictions. I used the following: # Restore from File History
$filePath = Read-Host "Enter the full path of the lost Excel file (e.g., C:\Documents\Book1.xlsx)"
if (Test-Path $filePath) {
$fileHistory = Get-ChildItem $filePath -ea SilentlyContinue | Get-ItemPropertyValue -Name PSPath -ea SilentlyContinue
if ($fileHistory) {
Write-Host "Previous versions of the file are available in File History."
Start-Process "control" " /name Microsoft.FileHistory"
}
else {
Write-Host "No previous versions of the file are available in File History."
}
} else {
Write-Host "File path does not exist."
}