Dim NumberOfRows As Integer
Dim X As Object
Counter = 2
' Calculate the number of rows of data.
NumberOfRows = UBound(ActiveChart.SeriesCollection(1).Values)
Worksheets("ChartData").Cells(1, 1) = "X Values"
' Write x-axis values to worksheet.
With Worksheets("ChartData")
.Range(.Cells(2, 1), _
.Cells(NumberOfRows + 1, 1)) = _
Application.Transpose(ActiveChart.SeriesCollection(1).XValues)
End With
' Loop through all series in the chart and write their values to
' the worksheet.
For Each X In ActiveChart.SeriesCollection
Worksheets("ChartData").Cells(1,
Counter )
=
Counter)) = _
Application.Transpose(X.Values)
End With
Counter = Counter + 1
Next
End Sub
To insert or delete a worksheet in a workbook, right-click the worksheet, and then rename it ChartData . Select the chart you want to extract basic data values from. Note: The chart can be embedded in a worksheet or on a separate chart > run macro > Data from the chart is placed on the ChartData worksheet .
With a workbook backup, you will always have access to your data if your workbook is accidentally deleted or damaged.
1. Click File > Save As .
2. Click Computer , and then click the Browse button .
3. In the Save As dialog box , click the arrow next to Tools , then click General Options .
4. In the General Options dialog box , select Always create backup .
A worksheet recovery file also helps ensure you will have access to your data if your workbook is accidentally deleted or damaged.
1. Click File > Options .
2. In the Save section , under Save workbooks , select Save AutoRecover information every box , then enter the number of minutes. (Default is 10).
3. In the AutoRecover file location box , enter the location where you want to save the recovery file.
4. Make sure Disable AutoRecover for this workbook only is not selected.
If Excel cannot open the spreadsheet file, or even the Open And Repair option fails, reset the calculation mode to manual processing and try again. Steps:
At this point, please reopen the corrupted file. It is possible that Excel will 'catch the error' and open the problematic file.
If Excel cannot open the error workbook file, give Microsoft Office Tools a chance. Usage is as follows:
This recovery tool will shut down Excel and then restart it, displaying a list of recovered spreadsheet files. If you're lucky, your precious Excel file will be on this list. Just open it and keep using it!
Sometimes a spreadsheet file is corrupted not necessarily due to software reasons or user mistakes when using it. It's very likely that it's temporarily inaccessible; network systems and servers often mark them as corrupt files. In case you encounter an error that is determined to have a similar cause and Excel cannot fix it, move the file to another folder, drive, or server.
Some people claim to be completely surprised with the satisfactory results when using the OpenOffice application suite to repair corrupted Excel files. This is a famous free and open source tool. If you can't handle the corrupted spreadsheet file on Excel, use OpenOffice 's Calc . Of course, this is often more laborious and complicated than you think.
If you can't fix the corrupted spreadsheet file, try opening it in WordPad. If successful, WordPad will convert everything to text. Of course, this doesn't necessarily make you completely satisfied other than the joy of being able to get your data back. This option will not be able to recover font formats, tables. However, unlike some other data recovery options, WordPad will help you recover macros. Use the Sub and Function search commands on the recovered data block to find them.
You can also open the corrupted .xls file in Word, but the results are usually quite limited. With this option, you must install the Microsoft Office Excel conversion tool. Unlike WordPad, Word cannot restore macros.
Sometimes you can recover data by processing the cells on the corrupted file. You won't be able to get back the formatting, charts, macros. but recovering the data is also a blessing. The procedure is as follows:
Switching to another format is a quite effective solution when Excel fails
Microsoft recommends using the SYLK format to avoid errors when using Excel, especially printer-related errors. You can open the corrupted Excel file this way:
After saving all the sheets in the new format, open the .slk file and edit it to .xls. Be careful not to use the name of the corrupted workbook file. If successful, you can save the values from the entered formula but not the formulas.
If you can recover data but still have trouble dealing with macros, you can save them in the following way:
Excel spreadsheets can become corrupted for many reasons, most of which you can avoid. The small but 'powerful' tips below will help you minimize the possibility of Excel workbook errors:
Good luck!