Excel 2010 runtime error

инструкции

 

To Fix (Excel 2010 runtime error 91) error you need to
follow the steps below:

Шаг 1:

 
Download
(Excel 2010 runtime error 91) Repair Tool
   

Шаг 2:

 
Нажмите «Scan» кнопка
   

Шаг 3:

 
Нажмите ‘Исправь все‘ и вы сделали!
 

Совместимость:
Windows 10, 8.1, 8, 7, Vista, XP

Загрузить размер: 6MB
Требования: Процессор 300 МГц, 256 MB Ram, 22 MB HDD

Limitations:
This download is a free evaluation version. Full repairs starting at $19.95.

Excel 2010 runtime error 91 обычно вызвано неверно настроенными системными настройками или нерегулярными записями в реестре Windows. Эта ошибка может быть исправлена ​​специальным программным обеспечением, которое восстанавливает реестр и настраивает системные настройки для восстановления стабильности

If you have Excel 2010 runtime error 91 then we strongly recommend that you

Download (Excel 2010 runtime error 91) Repair Tool.

This article contains information that shows you how to fix
Excel 2010 runtime error 91
both
(manually) and (automatically) , In addition, this article will help you troubleshoot some common error messages related to Excel 2010 runtime error 91 that you may receive.

Примечание:
Эта статья была обновлено на 2023-02-03 и ранее опубликованный под WIKI_Q210794

Содержание

  •   1. Meaning of Excel 2010 runtime error 91?
  •   2. Causes of Excel 2010 runtime error 91?
  •   3. More info on Excel 2010 runtime error 91

Meaning of Excel 2010 runtime error 91?

Ошибка или неточность, вызванная ошибкой, совершая просчеты о том, что вы делаете. Это состояние неправильного суждения или концепции в вашем поведении, которое позволяет совершать катастрофические события. В машинах ошибка — это способ измерения разницы между наблюдаемым значением или вычисленным значением события против его реального значения.

Это отклонение от правильности и точности. Когда возникают ошибки, машины терпят крах, компьютеры замораживаются и программное обеспечение перестает работать. Ошибки — это в основном непреднамеренные события. В большинстве случаев ошибки являются результатом плохого управления и подготовки.

Ошибка выполнения is a type of error that happens while a certain program is running. Generally, this error is triggered when the software can no longer solve an issue that occured. This error is also referred to as a “bug”. When runtime error is shown, the software that caused it is often frozen or closed immediately.

Ошибки такого рода в основном обнаруживаются на начальном этапе разработки программного обеспечения. Однако, если вы столкнулись с этим, даже когда программное обеспечение уже выпущено для общественности, ожидается, что разработчик отправит исправление, чтобы устранить проблему.

Ошибки времени выполнения возникают в разных формах с различными триггерами, которые вызывают проблему. Вот некоторые из наиболее распространенных причин ошибок времени выполнения:

  1. Конфликтные проблемы с другими работающими программами
  2. Коррумпированная запись в системе
  3. Проблемы с низкой памятью
  4. Устаревшие драйверы
  5. Старое или поврежденное аппаратное устройство
  6. Вредная вирусная атака
  7. Плохая практика программирования

Causes of Excel 2010 runtime error 91?

Поскольку существует несколько типов ошибок времени выполнения, иногда трудно решить проблему проблемы. Некоторые типы ошибок времени выполнения включают логическую ошибку, ту, которая дает неправильный вывод. Еще одна проблема — утечка памяти, которая заставляет программу постоянно использовать больше ресурсов ОЗУ при ее запуске. И, сбой программы, который является наиболее распространенным типом ошибки времени выполнения. Это заставляет программу перестать работать неожиданно.

Самый простой способ определить причину ошибки времени выполнения — прочитать сообщение об ошибке. Оттуда вы можете определить программу, которая генерирует ошибку. Кроме того, одним из способов исследования проблемы является доступ к диспетчеру задач, нажатие Ctrl + Alt + Del на вашем компьютере. Оттуда вы можете начать закрывать каждое запущенное программное обеспечение по одному, чтобы узнать, какая из них вызывает ошибку времени выполнения.

Ошибки выполнения могут также быть вызваны самой запущенной программой. Поэтому лучше всего проверить наличие исправлений и исправлений ошибок, которые разработчик выпустил. Если проблема не устранена, вы также можете попытаться удалить и переустановить программное обеспечение с помощью нового установщика с веб-сайта разработчика. Чтобы справиться с ошибками во время выполнения, вызванными вирусом, вам необходимо иметь надежное программное обеспечение безопасности. Убедитесь, что у вас установлена ​​последняя версия антивирусной системы. Вы также можете переустановить библиотеки времени выполнения Windows, чтобы исправить некоторые повторяющиеся проблемы.

More info on
Excel 2010 runtime error 91

РЕКОМЕНДУЕМЫЕ: Нажмите здесь, чтобы исправить ошибки Windows и оптимизировать производительность системы.

I getting runtime error 91 in my vba code, the code is as below.
Access 2010: Rename File & RunTime error 5

Why not just save it as «C:CATTLE_PAYMENT_EMAIL» & Objects 2.1 Library
5. Microsoft Access 3.6 Object Library
6. decided it didn’t want to so it any more and i can’t find a solution. Visual Basic saves the report as C:CATTLE_PAYMENT_EMAILCATTLE_PAYMENT.PDF absolutely fine.

Библиотека объектов Microsoft DAO 14.0
3.

I have run this code before successfully on my database numerous times and today it I have For Applications
2. However it errors on the final line of code «Name File «C:CATTLE_PAYMENT_EMAILCATTLE_PAYMENT.PDF» and then rename it «C:CATTLE_PAYMENT_EMAIL» & [FileName] & «.PDF»?

Microsoft Activex Data As NewFileName» with Run-time error ‘5’: Invalid procedure call or argument. Can I ask why you save the File as 6 references:
1. Automation
4. It runs the code fine and [FileName] & «.PDF» in the first place?

OLE


Доступ к ошибке 2010 Runtime 2448 Так запутался

Код:
Dim ctl As Control

being used in other search forms, with no problems. I cannot for the life of me ‘Clear all the controls in the Form Header section.

выяснить, что с ним не так. Как я уже сказал, у меня есть тот же самый код


Runtime Error in MS Excel

After I opened a spreadsheet in MS Excel 97,

Do you this error message? What caused spreadsheet has no macro attached to it. Thanks.

  будут оценены.

Линия 20
Ошибка: ожидаемый объект

Note that this wish to Debug? Any help I got the following error message:

Произошла ошибка выполнения.


Runtime Error VC++ Excel

Also NOTHING has years on a Intel RAID, as recently as yesterday. Ideas?

  changed in the system.

Здравствуйте
Like another poster, Excel was working perfectly for Error VC++ in ..excel.exe. I defragged, registry cleaned,

Today I get Runtime repaired installation, reinstalled and nothing.


Excel — VBA Runtime error 9

Has someone deleted or Worksheet does not have a Sheet1 in it’s Sheets collection. assist although I do not not have any formal VB training.

Because of my background (IS Operations) I have been asked to renamed the Sheet?

  That Error is telling you that the Currently Active


Excel Runtime Ошибка 52

My work is based on sql server development
and not visual basic generated automaticely a database on sql server 2000. server 2003 and excel office 2003. In INI sheet,
I take the way ENV which correspond to it the same idear) for the others elements of database… And i do the same (not exactly the same but

Здравствуйте,
i work on an Excel sheet to the directory where i creaeted objects of my base. My server is a windows competences
so if someone could help me !!!
благодаря


Runtime Error — Excel.exe?

I’ve looked all over for a with both MS Office Professional 2000 and MS Office Small Business 2003.

Every time I try to open Excel, I get the following error message:

Microsoft Visual issue with Excel.

  BTW, I am running Windows XP and having the same error Office programs (i.s. I’m only having this still working fine.

My other MS solution, but am coming up empty. Any help would be greatly appreciated. Word) are C++ Runtime Library
C:Program FilesMicrosoft OfficeOffice 10EXCEL.EXE

I have tried running registry cleaners, and uninstalling/re-installing MS Office.


Решено: Excel 2010 v Excel 2003 Ошибка Действительный диапазон

We recently migrated from _ABE2″

Может ли кто-нибудь помочь мне с этим? Он будет показывать что-то Office 2003 для Office 2010. Это имя было заменено на диске C.

Я не знаю, как это сделать.

  Мне нужно остановить его от появления и


Guessing Runtime Error in VBA for Excel

and the program automatically saves the Excel workbook to a floppy disc. Please insert a floppy disk.» Exit SubEnd If

I am writing a program which lets a user press a button


Ошибка VB отладки Excel VX 62

Waypoint Blank: Лист, который должен использоваться для импорта другого листа в него

  Когда я пытаюсь импортировать файл в пустую строку с помощью VB для импорта другого листа. Может any1 изменить мой скрипт vb, чтобы скрипт работал.

Привет, у меня есть 2 Excel. 1 путевой точки я получаю известную ошибку 62 во время выполнения отладки.


Runtime Error for Excel Macros

If you need more assitance I suggest you attach a sample with some dummy data to try and locate the line of code that throws the error.

  One thing houwever, if the Sheet named ‘Data» is

Привет всем,

I’m a beginner programmer not the active sheet, the Sheets(«Data»).Select will trow an error. and I’m getting a run time error.


VBA Excel Word — Runtime error 13 Mismatch

I’ve made sure that all Excel problem cell is: =SQRT(SUM((0.05^2))+SUM(((2(Main!$C$23/R11)(100))/SQRT(3))^2)+SUM((Q24)/SQRT(3))^2). It should from an Excel 2010 spreadsheet and inserts it into a Word 2010 table.
Здравствуйте,
I have a project that runs VBA code to extract numerical data didn’t copy well form Excel. I’d be grateful for have formatted this to show only 3 decimal places.

Большое спасибо

Sorry, the formula any help on this. I’ve subsituted the formula for a value and the code works with no problems. It returns a result of 0.055184538897533, although I be:
=SQRT(SUM((0.05^2))+SUM(((2(Main!$C$23/R11)(100))/SQRT(3))^2)+SUM((Q24)/SQRT(3))^2)
Спасибо

The formula in the cells are formatted correctly — number 0.000.


[VBA + Excel 2k3] Runtime error 9, Subscript out of Range

if

  Код:

if ubound(q)>=1 then

If Not Best Regards

iboumiza

  fixed ! Cells(Int(q(0)), Int(q(1))).Value = «» Then

……..

Конец


excel runtime error subscript out of range

I kept having a runtime error one sheet and paste it on another worksheet (Summary_Receipt_Fees) from B2 onwards. My codes is to copy the data from B6 onwards from that said subscript out of range.

Hi,I’m currently doing a macro in Office 2010 (Excel).


Excel 2007 and Runtime Error 1004

Can there be many causes that has protected sheets. If you can post the file with the code to the runtime error 1004? When I try to run a macro on the protected sheets, I get a runtime error 1004 message.

I have a workbook would be easier to give you an answer!
 


Ошибка EXCEL 2007 Pro Plus Visual C ++ R6025

I’ve just upgraded from MS Office 2003 to Office Pro Plus 2007 and I’m 2 on a 2 gig AMD processor. When I first got the message I uninstalled Ofice, turned off everything getting a Visual C++ runtime error R6025 when I try to open an Excel file. The error message says it’s and if so, how can I solve it? I’m running Windows XP Media Edition/service pack running in my system tray and installed Office again with the same result.

Кто-нибудь еще сталкивается с этой проблемой с чистой ошибкой вызова виртуальной функции. Конечно, можно использовать какую-то помощь!
 


Ошибка Excel 2010

I have a user receiving the same document the same issue will come up. Even if she has multiple copies of the the content of this workbook? I verified she was not using macros does not always happen to all of the files of that format.

It seems to happen with files under that specific format but be much appreciated

  I checked to make sure all add-ins were enabled. If we try clicking yes, it tries under the security area of General tab. Do you want to recover or any complicated formulas in the file.

I tried looking on the Internet for other solutions and have not been able to find anything. The file is not showing up blocked error «Excel found unreadable content in ‘filename.xlsx». Any help or advice would to repair but then fails to open anyways.


Excel 2010 #NAME? error

!

  I have reports generated from SAP can short and simple. Needs Help urgent

Make it be export and open in Excel 2007.


Microsoft Visual C++ Runtime Library Runtime Error» error message

быть больше помощи.

Извините, я не могу заплатить, ожидая ответа. Тем временем вы можете попробовать удалить заказ, чтобы исправить эту проблему?

Что мне нужно в


Unexpected error excel 2010

Typically, the location for autosave not be C:, but rather C:UsersYOUDocuments. AutoRecover exceptions (Disable) is help

  aacceob — lets start with your Excel Save information. Sounds like options may nor be enabled, or the save 2 checkboxes for AutoRecover should be checked. See how this flies is under a roaming profilemicrosoftexcel folder.

The Default File Location should generally not needed.

  Try File > Options > Save. is good. This location is in a folder without permissions to write to it.

It is driving me crazy ,thanks in advance for any and let us know.


MS Excel is a spreadsheet application that allows arranging and evaluating the huge amount of data easily and accurately. But, there are cases when the Excel file gets corrupted and start showing runtime error. Runtime errors are very common in Excel file some of them are runtime error 57121, runtime error 1004 and much more.

Facing a runtime error is not good for the Excel users, as it occurs suddenly while working on the Excel sheet and as a result, the data becomes inaccessible due to various reasons. Here in this article, we are describing another Excel runtime error 32809.

This is a very irritating error as this makes workbooks completely inaccessible and not even run on other computers. There is no any exact reason behind getting unexpected error 32809. But some situation seen before getting the Excel runtime error 32809 is when the macro select another file.  And when you try to enter the same codes in the corrupted files, then, it can’t access programmatically.  This error is faced when they are using the older computer like Windows 7 or office 2013. And when you use the same file on the new PC or on Windows 8, then this gets inaccessible.

So, to repair the run time error 32809, check the below given manual solutions as well as the automatic solution to fix the error.

How to Fix VBA Runtime Error 32809

well, there is no any exact solution that works for you to resolve run-time 32809 Excel error. Here check the possible manual solutions that worked for many users to fix VBA error 32809.

Solution 1: Change the Excel File Format

Follow the given instruction to make the Excel file macros free by changing the file format. This worked for the many users to resolve the error.

  1. Very firstly save the file as (macro-free) .xlsx by doing this the entire macros get erased while saving this file.
  2. Then open the source file with the macros and copy the entire modules to the .xlsx file and save the entire file as .xlsm and execute complete recompile.

Hope he given solution will help you to fix VBA runtime error 32809, but if not then try the second solution.

You May Also Read: 

  • How to Fix Broken ActiveX Controls in Microsoft Excel on Windows/Mac
  • 4 Working Solutions to Fix Excel XLSM Files Won’t Open In Excel 2013 Issue
  • How to fix KB00804 – VBA Errors in Microsoft Excel?

Solution 2: Disable ActiveX Controls

Many users are found reporting that disabling the ActiveX worked for them to fix VBA run-time error 32809 in Excel.

Follow the steps to do so:

  • Open Excel> click File> Excel Options
  • Now click Trust Center > > Trust Center SettingsActiveX
  • And click disable Active X controls.
  • After that open the tool and save it under a new name before enabling the content
  • Then enable the ActiveX controls again

Hope this works for you to fix runtime error 32809 in Excel but if not then make use of the third party tool to fix the error.

Automatic Solution: MS Excel Repair Tool

Make use of the professional recommended MS Excel Repair Tool, this is designed with the advanced algorithm to repair all sort of damages, corruption, and errors in the excel file. It is a unique tool that repairs multiple corrupted excel file at one time and also recovers everything included charts, cell comments, worksheet properties and other data. This recovers the corrupt excel file to a new blank file. It is extremely easy to use supports both Windows as well as Mac operating system.

* Free version of the product only previews recoverable data.

Steps to Utilize MS Excel Repair Tool:

Conclusion:

Hope with the given solutions the runtime error 32809 Excel 2010 is fixed and you are able to start using your Excel file.

In this article, we have provided a manual as well as automatic solution to fix the error.  You can make use of any solution according to your desire.

Apart from that, it is always recommended to have a backup of the Excel files to overcome the unexpected situations just like the above one.

Also, I love to hear from  you, so if you have any additional questions concerning the ones presented or related information or workarounds that I missed out then do tell us in the comments section below or you can also visit our Repair MS Excel Ask Question 

Good Luck!!!

Priyanka is an entrepreneur & content marketing expert. She writes tech blogs and has expertise in MS Office, Excel, and other tech subjects. Her distinctive art of presenting tech information in the easy-to-understand language is very impressive. When not writing, she loves unplanned travels.

Microsoft Excel is one of the most popular spreadsheets used across the globe for both individual and business purposes. It is the one-stop destination for storing, organizing, and manipulating data in an organized way. MS Excel comes mainly in two extensions i.e. XLS and XLSX format. However, apart from its incredible popularity, runtime errors are a common nuisance for many Windows users – and one of the most common ones is the Runtime Error 1004.

Runtime Error 1004 in Microsoft Excel

In this guide, we are going to discuss this common Runtime error 1004 and some of the best fixes to resolve it effortlessly.

What is Runtime Error 1004 in Excel?

Runtime error 1004 is an error code relating to Microsoft Visual Basic that has been known to disturb Microsoft Excel users. This error is faced by any versions of MS Excel such as Excel 2007, 2010, 2013, 2016, 2019 as well. No version of Microsoft Excel is safe from the menace of Runtime Error 1004. In some cases, you may see the runtime error 1004 in Excel after opening a worksheet. Such types of runtime errors usually occur due to a problematic add-in.

Runtime Error 1004 in Excel

This error is mainly encountered by users while they are working on an excel file or trying to generate a Macro in the excel document. It can cause serious trouble while working with Visual Basic Applications and can completely crash a program, or even the entire system; sometimes it may freeze the system prohibiting the users to do anything on their system.

Types of error message

The error messages that are most associated with this runtime error are as follows:

  • VB: run-time error ‘1004’: Application-defined or object-defined error
  • Excel VBA Runtime error 1004 “Select method of Range class failed”
  • runtime error 1004 method range of object _global failed visual basic
  • Excel macro “Run-time error ‘1004?
  • Runtime error 1004 method open of object workbooks failed
  • Run-Time error ‘1004’: Method ‘Ranger’ of Object’ Worksheet’ Failed
  • “Method in Key up Object Program APPLICATION Failed.”
  • Run-time error ‘1004’: Activate method of Worksheet class failed

If you encounter any of these above errors, then you can fix the error using our guide.

What are the causes?

The Error 1004 is a general code related to MS Excel but is not specific to one exact cause. Hence, in this case, the exact reason why this error might pop up will vary from case to case and circumstance to circumstance. From configuration issues to software problems, below we listed a synopsis of common reasons for runtime error 1004 in excel:

  • MS Excel Desktop Icon might be corrupted
  • VBA Excel File is clashing with other application
  • Due to application or object specified error
  • Due to missing dependent file
  • Due to Virus, Trojan or malware
  • Due to Invalid Registry Keys and so on.

These were a few of the most common reasons behind getting the runtime error 1004 in MS Excel; now let us understand the different fixes.

Here we have detailed both manual and automatic solutions to fix the Runtime Error 1004. You can follow any one of the next methods to resolve the issue.

  1. Create a new Excel template
  2. Launch Excel in Safe Mode
  3. Run a Virus Scan
  4. For VB: run-time error ‘1004’, resize legend entries

Let’s look at each of these methods in detail.

1] Create a new Excel template

In some cases, fixing this issue can be as simple as inserting a new worksheet from a template instead of creating a copy of an existing worksheet. Here is what you need to do:

1] Open MS Excel on your system

2] Press ‘CTRL + N’ to create a new Microsoft Excel worksheet or simply select a ‘Blank workbook’ from the first screen.

Runtime Error 1004

3] Once done delete all the sheets on the workbook except one.

4] Now, format the workbook, which has been left. Also, note, this workbook can be modified to suit your individual need.

5] In the end, go to ‘File > Save As’ to save the new worksheet with the Excel Template (.xltx or .xlt) file format.

6] Once you have successfully created the template, you can insert it programmatically by using the following line of code:

Sheets.Add Type:=pathfilename

Please note – Do not forget to replace the new filename with the actual name of the document.

2] Launch Excel in Safe Mode

If Excel is showing you the runtime error 1004 after opening an Excel file, there might be a problematic add-in causing the issue. The affected users received the error message given below:

Run-time error ‘1004’: Activate method of Worksheet class failed

To check if the problem is caused by an add-in or not, launch Excel in Safe Mode. If Excel opens successfully in the Safe Mode, the problem was occurring due to an add-in. Now, you have to identify the problematic add-in. To do that, follow the steps provided below:

Disable addins in Excel

  1. In Safe Mode, go to “File > Options > Add-Ins.”
  2. Select COM Add-ins in the drop-down on the right side and click Go.
  3. In Safe Mode, some add-ins are disabled. You have to enable the disabled add-ins one by one. Enable one of the disabled add-ins and restart Excel in normal mode. See if the error occurs.

If the error occurs, repeat the above steps again. After you find the problematic add-in, consider removing it from Excel.

3] Run a Virus Scan

It is very important to scan your computer system for malware and viruses as these can corrupt files and important documents and show the runtime error 1004 in MS Excel. Sometimes using a good antivirus program helps a lot.

Related: Run-time error 1004, Cannot run the Macro in Excel.

4] For VB: run-time error ‘1004’, resize legend entries

If you come across a Runtime Error 1004 when running a Microsoft Visual Basic for Applications (VBA) macro, then you can use this method to work-around.

Generally, you get this error when you try to run a VBA macro that uses the LegendEntries method to make changes to legend entries in a Microsoft Excel chart. That time, you may receive the following error message:

Run-time error ‘1004’: Application or object-defined error

This error occurs when the Excel chart contains more legend entries than there is space available to display the legend entries on the Excel chart. When this behavior occurs, Microsoft Excel may truncate the legend entries.

To work around this behavior, create a macro that reduces the font size of the Excel chart legend text before your VBA macro makes changes to the chart legend and then restore the font size of the chart legend so that it is similar to the following macro example.

Sub ResizeLegendEntries()
With Worksheets("Sheet1").ChartObjects(1).Activate
      ' Store the current font size
      fntSZ = ActiveChart.Legend.Font.Size
'Temporarily change the font size.
      ActiveChart.Legend.Font.Size = 2
'Place your LegendEntries macro code here to make
         'the changes that you want to the chart legend.
' Restore the font size.
      ActiveChart.Legend.Font.Size = fntSZ
   End With
End Sub

We hope this article helps you fix the runtime error 1004 in Microsoft Excel. This guide gives you manual as well as automatic solution to get rid of this error; you can make use of any solution based on your need.

How do I fix a runtime error?

Runtime errors occur at the time of running a program. The runtime errors usually freeze or crash the affected program or software. To fix a runtime error, you can use general fixes, like installing the latest Microsoft Visual C++ Redistributables, running the SFC and DISM scans, troubleshooting in a Clean Boot state, etc.

Read next: Arrows keys not working in Microsoft Excel.

  • Remove From My Forums
  • Вопрос

  • HI ,

    My Client is using macros in Excel 2010. They claim it was all working fine until the december patches were deployed.

    Initially they were getting Runtime error 32809. We tried the solution from the forum http://stackoverflow.com/questions/27591879/suddenly-several-vba-macro-errors-mostly-32809 but that throw the new runtime error 57121.

    Note : The machines did not install the patch KB2553154 as it only applicable for Office 2010 SP2 and the client environment is using Office 2010 SP1

    Request your help to solve the issue.

    http://stackoverflow.com/questions/27591879/suddenly-several-vba-macro-errors-mostly-32809

Ответы

  • Hi,

    Have you tried the above workaround (manually remove cached control extender objects)? If it still does not work, I’m afraid we need to install Office 2010 SP2 and then install the Hotfixs that have been released in the March 10th.

    Regards,

    George Zhao
    TechNet Community Support


    It’s recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Помечено в качестве ответа

      2 апреля 2015 г. 9:58

Four ways to fix runtime error 1004 in Excel:

Workable Solutions Step-by-step Troubleshooting
Fix 1. Delete the GWXL97.XLA Files Fix the Excel error 1004 is to find and delete the error file. Go to C:Program FilesMS OfficeOfficeXLSTART…Full steps
Fix 2. Check the Trust Access to the VBA Project Object Model Enable a VBA project trust option in Excel Trust Center to fix Excel error 1004. Open a blank Excel file…Full steps
Fix 3. Create Another Excel Template Start a new Excel workbook and make sure there is only one worksheet in it. Format the workbook first…Full steps
Fix 4. Repair Corrupted Excel File Repair corrupted Excel files with a file recovery tool. EaseUS file repair tool fixes severely corrupted XLS and XLSX files and retrieves everything from Excel…Full steps

Microsoft Visual Basic for Applications (VBA) is developed to help users write programs for the Windows operating system. It runs as an internal programming language in Microsoft Office, such as Word, Excel, and PowerPoint.

Some users have reported that when running VBA in an Excel chart or trying to generate a Macro in Excel documents, an error message popped up saying: Runtime error 1004. And then they find themselves cannot access the Excel files. If you have the same encounter as these users, this post is the right place for you. You can find both the reasons and the corresponding solutions of this error code on this page.

How to Fix Excel Error 104

Runtime Error Details

The error message contains more information than the error code 1004. Generally, follow the error code, you can see a brief description. The most repeated error messages are listed below:

  1. Runtime error 1004: Application or object-defined error.
  2. Runtime error 1004: Method Ranger of Object Worksheet failed.
  3. Runtime error 1004: Copy Method of Worksheet Class failed.

The Reason Why You See Runtime Error 1004 in Excel

If you want to know how to fix runtime error 1004 in Excel properly, you need to understand what leads to this issue. The following are the most prominent reasons.

  • Macro Name Error

The Macro you are running is copying the original worksheet to a workbook with a defined name that you did not save and close before running the Macro.

  • File Conflict

When opening the VBA Excel file, it gets conflicted with other programs.

  • Too Many Legend Entries

The Excel chart contains more legend entries than space available to display the legend entries on the chart.

  • Excel File Corruption

Your .xls files got corrupted, infected, or damaged.

Although many reasons would cause this Excel error 1004 problem, luckily, some valid methods can help users re-access the files. Let’s check them one by one.

Fix 1. Delete the GWXL97.XLA Files to Fix Runtime Error 1004 in Excel

The easiest method to fix the Excel error 1004 is to find and delete the error file.

Step 1. Go to C:Program FilesMS OfficeOfficeXLSTART.

Step 2. Find GWXL97.XLA file and delete it.

Step 3. Reopen your Excel file and check if the problem is solved.

Fix 2. Check the Trust Access to the VBA Project Object Model

Another solution you can try is to enable a VBA project trust option in Excel Trust Center. Follow the detailed steps and have a try.

Step 1. Open a blank Excel file and click «Files» on the upper left.

Step 2. Click Option and go to Trust Center.

Enter Excel Option

Step 3. Find and enter the Trust Center Settings.

Enter Trust Center Settings

Step 4. Under Macro Settings, tick the option of «Trust access to the VBA project object model.»

Trust Access to the VBA Project

Now you can check your Excel file.

Fix 3. Create Another Excel Template to Fix Runtime Error 1004 in Excel

This method could be a little bit complicated, but it’s useful and worth trying.

Step 1. Please start a new Excel workbook and make sure there is only one worksheet in it.

Step 2. Format the workbook first and then put the data you need onto it.

Step 3. Tap File > Save As, first enter the file name, and click the unfold arrow in Save as Type column.

Excel Save As

Excel 2003: Choose Excel 97-2003 Template.

Excel 2007 or Later: Choose Excel Template.

Choose the Right Template

Step 4. Click «Save» to confirm.

Now you can insert it programmatically by using the following code: Add Type:=pathfilename. The file name is the one you set when you create the new Excel template.

Fix 4. Repair Corrupted Excel Files Due to Error 1004 

If all the above solutions can’t help you out, then there is one possibility that the Excel file you want to open is damaged. To fix a damaged Excel file, you can rely on file repair software. EaseUS Data Recovery Wizard is a great choice.

With this tool, click the «Repair» button and wait for it to fix all the corrupted documents for you.

  • Repair various corrupted files, including repairing Word, Excel, and PDF document 
  • Fix unreadable contents in Word efficiently
  • Repair corrupted PDF files, extract the text, comments, labels, graphics, etc. 
  • Compatible with Microsoft Office 2019, 2016, 2013, 2010, & previous versions.

Download the software and follow the detailed steps below to fix corrupted Excel files.

Step 1. Launch EaseUS Data Recovery Wizard, and then scan disk with corrupted documents. This software enables you to fix damaged Word, Excel, PPT, and PDF files in same steps. 

select the disk with corrupted documents

Step 2. EaseUS data recovery and repair tool will scan for all lost and corrupted files. You can find the target files by file type or type the file name in the search box. 

find corrupted documents

Step 3. EaseUS Data Recovery Wizard can repair your damaged documents automatically. After file preview, you can click «Recover» to save the repaired Word, Excel, and PDF document files to a safe location.

repair corrrupt documents

The Bottom Line

After reading, you must have a thorough understanding of how to fix Runtime error 1004. If you can make sure that the Excel file you want to open is valid, then the first three methods would help you out.

Once you got a damaged Excel file, a professional file recovery tool is a wiser choice. EaseUS file repair software is highly recommended by many users & IT professionals to help you repair Word, Excel, PowerPoint, and PDF files. 

Майкрософт Эксель — одна из самых популярных электронных таблиц, используемых во всем мире как для личных, так и для деловых целей. Это универсальное место для хранения, организации и обработки данных организованным способом. MS Excel поставляется в основном с двумя расширениями, то есть в формате XLS и XLSX. Однако, помимо невероятной популярности, ошибки во время выполнения — обычная неприятность для очень многих пользователей Windows, и одной из самых распространенных является ошибка. Ошибка выполнения 1004.

Ошибка выполнения 1004 в Excel

В этом руководстве мы собираемся обсудить эту распространенную ошибку времени выполнения 1004 и некоторые из лучших исправлений для ее легкого решения.

Что такое ошибка времени выполнения 1004 в Excel?

Ошибка выполнения 1004 — это код ошибки, относящийся к Microsoft Visual Basic, который, как известно, беспокоит пользователей Microsoft Excel. С этой ошибкой сталкиваются любые версии MS Excel, такие как Excel 2007, 2010, 2013, 2016, 2019. Ни одна версия Microsoft Excel не застрахована от угрозы Runtime Error 1004.

С этой ошибкой в ​​основном сталкиваются пользователи, когда они работают с файлом Excel или пытаются создать макрос в документе Excel. Это может вызвать серьезные проблемы при работе с приложениями Visual Basic и привести к полному сбою программы или даже всей системы; иногда это может привести к зависанию системы, запрещая пользователям что-либо делать в своей системе.

Типы сообщений об ошибках

Сообщения об ошибках, которые больше всего связаны с этой ошибкой времени выполнения, следующие:

  • VB: ошибка времени выполнения ‘1004’: ошибка приложения или объекта
  • Ошибка выполнения Excel VBA 1004 «Ошибка выбора метода класса Range»
  • ошибка времени выполнения 1004 диапазон метода объекта _global не удалось Visual Basic
  • Макрос Excel «Ошибка выполнения» 1004?
  • Ошибка выполнения 1004 не удалось открыть метод объектных книг
  • Ошибка времени выполнения «1004»: сбой метода «Рейнджер» объекта «Рабочий лист»
  • «Сбой метода в ПРИЛОЖЕНИИ ПРИЛОЖЕНИЯ ОБЪЕКТНОЙ программы».

Если вы столкнулись с какой-либо из этих ошибок, вы можете исправить ее с помощью нашего руководства.

Каковы причины?

Ошибка 1004 — это общий код, связанный с MS Excel, но не связанный с одной точной причиной. Следовательно, в этом случае точная причина, по которой может появиться эта ошибка, будет варьироваться от случая к случаю и от обстоятельств к обстоятельствам. От проблем с конфигурацией до проблем с программным обеспечением, ниже мы перечислили краткий обзор распространенных причин ошибки времени выполнения 1004 в Excel:

  • Значок рабочего стола MS Excel может быть поврежден
  • Файл VBA Excel конфликтует с другим приложением
  • Из-за ошибки, указанной в приложении или объекте
  • Из-за отсутствия зависимого файла
  • Из-за вируса, трояна или вредоносного ПО
  • Из-за неверных ключей реестра и так далее.

Это были некоторые из наиболее частых причин получения ошибки времени выполнения 1004 в MS Excel; Теперь давайте разберемся с различными исправлениями.

Здесь мы подробно описали как ручные, так и автоматические решения для исправления ошибки выполнения 1004. Вы можете использовать любой из следующих методов, чтобы решить проблему.

  1. Создать новый шаблон Excel
  2. Запустите сканирование на вирусы
  3. Для VB: ошибка времени выполнения ‘1004’, измените размер записей легенды

Давайте подробно рассмотрим каждый из этих методов.

1]Создайте новый шаблон Excel

В некоторых случаях для устранения этой проблемы достаточно просто вставить новый лист из шаблона вместо создания копии существующего листа. Вот что вам нужно сделать:

1]Откройте MS Excel в вашей системе

2]Нажмите ‘CTRL + N‘для создания нового листа Microsoft Excel или просто выберите’Пустая книга‘с первого экрана.

Ошибка выполнения 1004

3]После этого удалите все листы в книге, кроме одного.

4]Теперь отформатируйте оставшуюся книгу. Также обратите внимание, что эту книгу можно изменить в соответствии с вашими индивидуальными потребностями.

5]В конце перейдите к ‘Файл> Сохранить как‘, чтобы сохранить новый рабочий лист в формате файла шаблона Excel (.xltx или .xlt).

6]После успешного создания шаблона вы можете вставить его программно, используя следующую строку кода:

Таблицы.Добавить Тип: = путь имя файла

Пожалуйста, обрати внимание — Не забудьте заменить новое имя файла на настоящее имя документа.

2]Запустите сканирование на вирусы

Очень важно сканировать компьютерную систему на наличие вредоносных программ и вирусов, поскольку они могут повредить файлы и важные документы и показать ошибку времени выполнения 1004 в MS Excel. Иногда очень помогает хорошая антивирусная программа.

3]Для VB: ошибка времени выполнения «1004», измените размер записей легенды.

Если вы столкнулись с ошибкой времени выполнения 1004 при запуске макроса Microsoft Visual Basic для приложений (VBA), вы можете использовать этот метод для временного решения.

Обычно эта ошибка возникает при попытке запустить макрос VBA, который использует метод LegendEntries для внесения изменений в записи легенды на диаграмме Microsoft Excel. На этот раз вы можете получить следующее сообщение об ошибке:

Ошибка времени выполнения ‘1004’: ошибка приложения или объекта

Эта ошибка возникает, когда диаграмма Excel содержит больше записей легенды, чем имеется место для отображения записей легенды на диаграмме Excel. В этом случае Microsoft Excel может усекать записи легенды.

Чтобы обойти это поведение, создайте макрос, который уменьшает размер шрифта текста легенды диаграммы Excel до того, как макрос VBA внесет изменения в легенду диаграммы, а затем восстановите размер шрифта легенды диаграммы, чтобы он был похож на следующий пример макроса. .

Sub ResizeLegendEntries()
With Worksheets("Sheet1").ChartObjects(1).Activate
      ' Store the current font size
      fntSZ = ActiveChart.Legend.Font.Size
'Temporarily change the font size.
      ActiveChart.Legend.Font.Size = 2
'Place your LegendEntries macro code here to make
         'the changes that you want to the chart legend.
' Restore the font size.
      ActiveChart.Legend.Font.Size = fntSZ
   End With
End Sub

Мы надеемся, что эта статья поможет вам исправить ошибку времени выполнения 1004 в Microsoft Excel. Это руководство дает вам как ручное, так и автоматическое решение, чтобы избавиться от этой ошибки; вы можете использовать любое решение в зависимости от ваших потребностей.

Читать дальше: Клавиши со стрелками не работают в Microsoft Excel.

Ошибка выполнения 1004

Понравилась статья? Поделить с друзьями:
  • Excalibur craft как изменить ник
  • Exanima application error
  • Ex5 write error
  • Ex4 write error
  • Ex2303i compare turret position error