Dim NumberOfRows As Integer Dim X As Object Counter = 2 'Calculate các số này của dữ liệu. 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 các các dòng trong các mục đã ghi rõ và ghi sang 'the worksheet. For Each X In ActiveChart.SeriesCollection Worksheets ("ChartData"). Cells (1, Counter) = X.Name With Worksheets ("ChartData") .Range (.Cells (2, Counter), _ .Cells (NumberOfRows + 1, 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, then rename it to ChartData . Select the chart to extract the basic data values. 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 spreadsheet.
2.3. Automatically save backups of workbooks
With a workbook backup, you will always have access to your data if your workbook is accidentally deleted or corrupted.
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 , and then click General Options .
4. In the General Options dialog box, select Always create backup .
2.4. Automatically create recovery files in the set time period
A recovery file of the worksheet also helps ensure you will have access to your data if your workbook is accidentally deleted or corrupted.
1. Click File> Options .
2. In the Save section, in Save workbooks , select Save AutoRecover information every box , then enter the 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 is not selected.
3. Turn off automatic calculation
If Excel cannot open the spreadsheet file, or even the Open And Repair option is a problem, reset the calculation mode to manual processing and try again. Steps to take:
Open a new spreadsheet file with empty content.
From the Tools menu select Options and click on the Calculation tab. In Excel 2007, click the Office button, followed by Excel Options, and select Formulas on the left panel.
In parameter settings for Calculation ( Calculation Options in Excel 2007), select Manual .
Click OK .
Now open the corrupted file again. Maybe Excel will 'catch error' and open the problem file.
4. Use Microsoft Office Tools
If Excel cannot open the corrupted workbook, take the opportunity for Microsoft Office Tools. Usage is as follows:
From the Start menu, select All Programs (on Windows XP).
Select Microsoft Office .
Select Microsoft Office Tools .
Select Microsoft Office Application Recovery .
Select Microsoft Office Excel in the dialog box.
Click Recover Application . Processing may take a few minutes.
This recovery tool will turn off Excel and then reboot, displaying a list of restored spreadsheet files. If you're lucky, your precious Excel file will be on this list. Just open and continue using!
5. Try moving the file to another location:
Sometimes a spreadsheet file fails, not because of software reasons or users' mistakes. Most likely it is temporarily unavailable, network systems and servers often still mark them as corrupted files. In the event of a known error with similar causes and Excel cannot be fixed, please transfer the file to another folder, drive or server.
6. Let OpenOffice 'launch'
Download the OpenOffice software
Some people claim to feel completely surprised with the satisfactory results when using the OpenOffice application suite to repair Excel error files. This is a famous free open source tool. If you cannot handle the spreadsheet file with errors on Excel, use OpenOfficeCalc . Of course, this is often more complex and complicated than you think.
7. Open the error file on WordPad or Word
If you cannot fix the corrupted spreadsheet file, try opening it in WordPad. If successful, WordPad will convert everything to text. Of course, this does not necessarily make you completely happy beyond the joy of being able to retrieve data. This option will not be able to recover font and table formats . However, unlike some other data recovery options, WordPad will help you recover macros. Use the search command Sub and Function on the recovered data block to find them.
You can also open a corrupted .xls file on Word, but the results are usually quite limited. With this option, you must install the Microsoft Office Excel converter. Unlike WordPad, Word does not recover macros.
8. Handling cells - data cells are corrupted to recover data
Sometimes you can recover data by processing the cells on the corrupted file. You will not be able to retrieve formatting, charts, macros . but recovering data is already too lucky. The process is as follows:
Open a new workbook, enter cell A1 the following formula to lead to cell A1 in the error file: the name of the error file ! A1 . (You do not need to add .xls).
Click Enter .
If the error file is not in the same folder, Excel displays the Update Values dialog box : the name of the file that is corrupted. Please use the control panel Look In to identify the corrupted file. Select this file and click OK .
If the Select Sheet dialog box appears, select the appropriate sheet and click OK . Excel displays the cell A1 value of the error file.
Select cell A1 and drag across the columns you feel you need to be able to recover the data. If Excel displays the Update Values dialog box - the file name is corrupted, select the error file and click OK .
Repeat step 5, duplicate row A according to the number of goods you feel is sufficient to restore the error file.
Select the data and click Copy from the Edit menu.
Select Paste Special from the Edit menu, select Values .
Click OK .
Try the SYLK format to recover data:
Switching to another format is an 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 in this way:
From the File menu, select Save As . In Excel 2007, click the Office button.
From the Save As Type control panel, select SYLK (Symbolic Link) (* .slk) .
To name. If the error file has a sheet, this is not necessary.
Click Save .
If the workbook file has multiple sheets, Excel will ask if you can continue using the format that doesn't support multiple sheets at the same time. Click OK .
If Excel warns you that you can workbook with some formats that are incompatible with SYLK, select Yes .
Note that the SYLK format only stores the currently used sheets . To restore data, you need to reopen the Excel file and save each sheet one by one. That's why in step 3 you need to name each sheet on the workbook to avoid confusion later.
After you've saved all the new sheets, open the .slk file and edit it to .xls. Be careful, don't use the name of the failed workbook file. If successful, you can save the values from the entered formula but the formulas do not.
10. Restore macros
If you can restore the data but still bundle the macros, you can save them in the following way:
Open Excel, do not open the error workbook.
Set the calculation mode to manual mode (tip 3 above).
Select Macro from the Tools menu, select Security and then select High . In Excel 2007, click the Office button -> Excel Options , and select Trust Center on the left of the table. Then, click the Trust Center Settings button, select Macro Settings , then select Disable All Macros Without Notification on the Macro Settings area . Finally click OK twice:
Open the corrupted file. If Excel is open, you will see a message indicating that the macro is currently turned off. If Excel is turned off, this method is considered a failure.
Click [Alt] + [F11] to open the Visual Basic Editor (VBE) .
Use Project Explorer (click [Ctrl] + R ), right-click the module and select Export File ).
Enter the name and directory of the module.
Repeat steps 6 and 7 according to your estimates, enough to extract all modules.
Close VBE and exit Excel.
Open an empty workbook (or a new workbook containing newly recovered data) and import modules.
Good luck!
See more:
Recovering unsaved Word files, retrieving Word, Excel and PowerPoint files before saving
How to convert PDF files to Word simply, without font errors
How to create the index on the bottom, write the exponent in Word
how to retrieve unsaved excel files, restore unsaved excel files. in the process of working with excel file, there will be times when you encounter problems closing the excel file without saving the data while editing. you are not sure how to recover and recover
this wikihow teaches you how to recover and repair a corrupted microsoft excel file on your windows or mac computer. make sure that you're using a windows computer. you can only repair an excel file in the windows version of excel.
if your memory card is corrupted or you've accidentally deleted files, you can recover your photos, videos, and other important files using data recovery software. reputable third-party programs that can help you safely recover data from...
when encountering an excel file error, users may feel annoyed and do not know how to fix it. common errors such as not being able to open excel files, slowness or font errors can all be resolved with simple but effective methods.
optical discs are very fragile, some scratches on cds and dvds can easily turn it into coasters. let's take a look at some ways to fix corrupted cds and dvds, recover data from those scratched discs.
corrupt word files can be a major disruption to your workflow, especially if they contain important data. this can be caused by software, formatting, or operating system errors. this article will show you how to fix the error quickly and effectively, helping you recover the file content without complicated installation.
setting up excel password has many ways, from simple to use excel's built-in password feature to use vba. below tipsmake.com will show you the most basic ways to protect your excel file.