Frequently encountering Run-time error ‘438′: Object doesn’t support this property or method whenever you try to start work in Excel?
Don’t have any idea what causing this Excel runtime error 438 and how to fix it?
Well don’t get worried about it, as this post will help you to get the best fixes to resolve Excel error 438: Object doesn’t support this property or method error. Not only this, but you will also get complete information about this Excel error 438.
What Is Excel Runtime Error 438?
Mostly it is seen that the user stuck into such annoying error code in macro when the object doesn’t support by the property or method.
If any Excel user creates a toolbar in Excel by using visual basic code then also the following error code occurs:
Run-time error “438”: Object doesn’t support this property or method
To recover lost Excel objects, we recommend this tool:
This software will prevent Excel workbook data such as BI data, financial reports & other analytical information from corruption and data loss. With this software you can rebuild corrupt Excel files and restore every single visual representation & dataset to its original, intact state in 3 easy steps:
- Download Excel File Repair Tool rated Excellent by Softpedia, Softonic & CNET.
- Select the corrupt Excel file (XLS, XLSX) & click Repair to initiate the repair process.
- Preview the repaired files and click Save File to save the files at desired location.
Error Detail:
Error code: Run-time error ‘438′
Error name: Object doesn’t support this property or method
Error Screenshot:
What Are The Circumstances In Which Run-Time Error 438 In Excel Occurs?
There is not any specific reason for encountering this Excel runtime error 438: Object doesn’t support this property or method.
It is found that this Excel runtime error 438 occurs under several circumstances. So check this out:
- When anyone tries to make use of variables for workbooks and worksheet names.
- When executing a program within which form is already allotted to a variable. And that specific variable is now been used for accessing control over the form.
- This error also occurs when an installed AMD driver becomes out of date.
- The Macro you are using is maybe a wrong one or maybe it’s not working. Ultimately this will throw Excel runtime error 438.
- Runtime error 438 also encounters when you are trying to execute the designed macro of MS Excel previous version, into the latest MS Excel application.
- At the time of creating a custom toolbar in their Excel worksheet. User encounters a task failure error message i.e. “Object doesn’t support this property or method: Run-Time Error 438.
- In another instance in which this error occurs, the user tries to run the Microsoft VB for Excel macro. This macro tries to set the Excel worksheet properties but fails to complete this task which ultimately results in runtime error 438 in Excel.
After catching the complete idea of what can be the reasons for the Excel runtime error 438. Now you can easily make a keen check over the sections where this problem can generate.
How To Fix Runtime Error 438 In Excel?
Fix 1# MS Office Version Supporting Issue
Runtime error 438 in Excel also encounters while trying to work with the outdated macro function designed in older version MS Office application in some latest version of MS Office.
For this, I will recommend you to, use your macro in the respective version of MS Office application in which you have designed it. OR else you can get help from this helpful post [FIXED]: “This File is Not in Recognizable Format” Excel Error.
Fix 2# Check The Codings
As we have already discussed that Excel Runtime Error 438 also occurs due to the incorrect creation of a macro. Or when the user tries t0 run the macro which Excel objects don’t support property or method.
So, to resolve this Excel Object doesn’t support this property or method error user needs to check or rewrite the coding within the VBA module.
If you are not having good command over the programming then you can contact Microsoft Advisory Services.
Fix 3# Uninstall Microsoft Works Add-in:
It is seen that Microsoft works add-in generates this Excel Object doesn’t support this property or method error. So, uninstall this add-in just by following these steps:
- Go to the Start menu then click the Settings option and then on the Control Panel.
- Now tap to the Add / Remove Programs.
- Hit the File Location present within the Options.
- From Uninstall/Install tab, choose the add-in suit i.e Word in Works. After then tap the Add / Remove.
- Now carefully follow the screen instructions.
- Restart your PC and attempt to load Microsoft Word again.
This will stop the error from occurring again because you have successfully uninstalled the problem causing Works for Word add-in the program.
Fix 4# Use Microsoft Fix-It #50356
In many cases it is found that by downloading the Microsoft Fix-It #50356 user has successfully overcome the Excel error 438: Object doesn’t support this property or method.
So, you can also download the Microsoft Fix-It Patch from this link: https://support.microsoft.com/en-in/help/2970908/how-to-use-microsoft-easy-fix-solutions After complete downloading, the wizard will assist you throughout the tasks that you have to perform.
Through this Microsoft #50356 hotfix broken registry strings that are causing the issue can easily be repaired. This patch gives new keys on behave of broken registry keys. If your registry keys are broken then your Windows application displays the error message. But after downing this new patch in your PC your Window won’t show any error regarding Object doesn’t support this property or method.
If even after trying the above fixes the problem won’t resolve then move to the next solution.
Fix 5# Disable or Uninstall Windows Antivirus Software
Sometimes installed anti-viruses on your system also cause this runtime error 438. So, by disabling or uninstalling the anti-virus software you can easily get rid of this issue.
Steps to uninstall antivirus program from your PC:
- Open the control panel of your PC.
- After then make double-tap to Add/Remove Programs
- Choose the antivirus program which you want to uninstall from your PC. After then, tap to the Remove or Change/Remove option.
- Carefully follow the on-screen instructions for removing up the antivirus program. Once it gets over, restart your PC.
Fix 6# Reinstall The Device Drivers For The Device
Reinstalling the device driver can fix Excel Runtime Error 438. Try the following steps to resolve Object doesn’t support this property or method:
- Go to your system taskbar and make a tap on the start button. Here you will see a search box, in this box type device manager. After then choose the Device Manager.
- Make a right-click on the device name you need to uninstall and choose the Uninstall option.
- After uninstalling the device, restart your PC.
- Windows will try for driver reinstallation.
Fix 7: Resolve The Corruption Issue
Sometimes Excel sheet gets damaged or corrupt due to so many reasons like sudden system shutdown, software malfunction, virus attack, etc. Once the Excel spreadsheet gets corrupted /damaged you can’t access it anymore or it starts throwing error messages. So, the chances are high that some of your Excel file Objects got corrupted and thus it showing Object doesn’t support this property or method error.
Hence for the quick and easy solution to repair and restore corrupt Excel files go with the recommended option i.e Excel Repair Tool. It is the best software for repairing the damaged excel file.
* Free version of the product only previews recoverable data.
With this efficient repair tool, user can easily be able to fix all known errors that lead to corruption of excel files on Mac. It deeply scans the selected excel files without making any changes to the original content of the worksheet and fetches all the issues. It restores all the charts, objects, hidden sheets, pictures, clip charts, and other important Excel file content.
Wrap Up:
Carefully try all the above fixes to resolve runtime error 438 in Excel as some of the listed fixes may hamper your system settings if performed incorrectly. Even after trying all the above fixes if the Excel Object doesn’t support this property or method error won’t be resolved then let us inform by commenting in our comment section.
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.
Return to VBA Code Examples
This article will demonstrate how to Fix VBA Error 438 – Object Doesn’t Support Property or Method.
Error 438 is a frequently occuring error in Excel VBA and is caused by either omitting a property or method when referring to an object, or by using a property or method that is not available to an object in the VBA code.
Check the VBA code to Fix Error 438
Let us examine the following code:
Sub RemoveWorksheet()
Dim wb As Workbook
Dim ws As Worksheet
Dim sheetName As String
sheetName = "Sheet 1"
Set wb = ActiveWorkbook
For Each ws In wb.Sheets
If ws = sheetName Then
wb.Sheets(sheetName).Delete
Exit For
End If
Next ws
End Sub
If we run this code, Error 438 will occur.
To resolve this issue, we click on Debug to see where the error is occurring.
This line of code is trying to equate the worksheet (depicted by the variable ws) to the sheet name. This is not possible as the worksheet is an object but the sheet name is a string so Error 438 is therefore returned.
To solve this, compare the string sheetName to the name property of the worksheet object:
ws.name = sheetName
Now the code runs without issue!
To show a list of all the properties or methods that are available to the worksheet object, we can type a dot (.) after the object.
This invokes the VBA Editor’s Intellisense feature. To make sure it’s turned on, in the Menu, select Tools > Options.
Make sure Auto List Members is checked and then click OK.
NOTE: This is usually on by default.
You can also find a list of all the Properties, Methods and Events for an Excel Object in the Object Browser.
In the Menu, select View > Object Browser or press F2 (See more VBE shortcuts).
A list of classes and objects will appear in the left hand side of the screen. If you click on the object you wish to use (eg: Workbook), a list of all the Properties, Methods and Events that that object supports will appear in the right hand side of the screen. (eg: Members of Workbook).
VBA Coding Made Easy
Stop searching for VBA code online. Learn more about AutoMacro — A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!
Learn More!
Есть файл, работающий уже лет 7. На странице кнопка, при открытии проверяется контрольное поле и в зависимости от этого кнопка активна или нет (.Enable=True or False). Файл работал в нескольких версиях оффиса. Последнее время на 2010 и 2013 (основная версия). В результате последнего апдейта оффиса стало появляться сообщение, приведенное в описании темы. Кроме того, ранее в режиме конструктора можно было просмотреть свойства объекта (кнопки, к примеру) на листе, теперь же вызываются свойства листа, содержащего объект.
Проверил на соседней машине, оффис 2010 СП2 без последних апдейтов — все ОК. Выполнил обновление — картина та же, что описана выше…
Кто-нить сталкивался с подобной проблемой? Спасибо!
ЗЫ: Кстати, подобную проблему нашел в архиве за 2012, но на ХР у меня не возникало подобных ошибок…
http://www.planetaexcel.ru/forum/?PAGE_NAME=read&FID=8&TID=42275
David Zemens got your answer.
Here’s how to avoid repeating it.
Looking at this line:
For Each item In Worksheets("Collector").SlicerCaches("Slicer_RptDate").SlicerItems
If we made every statement explicit, it would look like this:
For Each item In Worksheets.Item("Collector").SlicerCaches.Item("Slicer_RptDate").SlicerItems
In other words:
Worksheets.Item("Collector") _
.SlicerCaches.Item("Slicer_RptDate") _
.SlicerItems
That’s a lot of member accesses for a single instruction.
By introducing intermediate variables…
Dim collectorSheet As Worksheet
Set collectorSheet = Worksheets("Collector")
Dim rptDateSlicerCache As SlicerCache
Set rptDateSlicerCache = collectorSheet.SlicerCaches("Slicer_RptDate") '*
For Each item In rptDateSlicerCache.SlicerItems
'...
Next
…you could have noticed while typing the line marked with a '*
comment, that IntelliSense doesn’t offer SlicerCaches
as a member of collectorSheet
.
Why? Because this:
Worksheets("Collector")
Returns an Object
— and from that point on, you’re on your own: IntelliSense can’t help you with autocompletion, because members of an Object
aren’t resolved until runtime.
By assigning that object to a Worksheet
variable, you give yourself compile-time checking, and avoid that pesky runtime error 438.
We already know that this is the most frustrating Microsoft Visual Basic Runtime Error 438 VBA issue which you are getting in day-to-day life, So today we are surely here going to show you some top best accessible methods and solutions and some tips and tricks to get rid out of it permanently from your Windows PC as well on your device too if you are facing on it also.
This shows an error code message like,
When you are running a Visual Basic or running the Microsoft Excel 2000, then you might get this error problem. This error occurs when you are trying to use variables for workbooks & worksheet names. This Microsoft Visual Basic Runtime Error 438 VBA may also happen when you are running a program in which a form is assigned to a variable & that variable is used to access a control on the form. This error includes your PC system crashes, virus infection or sometimes freezes too. It also starts when you are trying to execute the BW query. This error may occur if the installed AMD drivers out of date.
Causes of Microsoft Visual Basic Runtime Error 438 VBA Issue:
- Microsoft Visual Basic runtime
- Windows PC error issue
- An object does not support this property or method epaceengagement
So, here are some quick tips and tricks for efficiently fixing and resolve this type of Microsoft Visual Basic Runtime Error 438 VBA Windows PC Code issue from you permanently.
How to Fix & Solve Microsoft Visual Basic Runtime Error 438 VBA Issue
1. Disable the Enhanced Protected Mode from Internet Explorer –
- Open Internet Explorer
- Click on the tools option there, on the right side
- Click on the Internet Options there
- On the Advanced option,
- Uncheck the option box for “Enable Enhanced Protected Mode.”
It’s under the Security tab - Now, click on Apply to apply these settings
- Click on OK to save this configuration
- After completing, close all the tabs there
- That’s it, done
By disabling the Enhanced Protected Mode from your Internet Explorer browser can get rid out of this Microsoft Visual Basic Runtime Error 438 vba excel code problem.
2. Install an Automatic Repair Tool on your Windows PC –
- Go & Search for Automatic Repair Tool on the Internet
- Download it from there
- Now, Click on ‘RUN‘ & Install it
- Open it and use the automatic repair tool
- After finish, close the tab
- That’s it, done
By installing an automated repair tool on your Windows PC will fix this Runtime Error 438 excel vba access problem quickly from you.
3. Uninstall Microsoft Works Add-in on your Windows PC –
- Click on the Start menu
- Search for Control Panel or directly open it
- Open ‘Add or Remove Programs‘ tab there
- Click on the file location in the options tab
- On the Uninstall/Install option,
- Select the Words in Works Suite Add-in
- Again, click on the Add or Remove Programs there
- Follow the ON Screen instructions
- After completing, close all the tabs from there
- Restart your PC
- Load the Microsoft Word again
- That’s it, done
By uninstalling the Microsoft Works Add-in can get back you from this type of excel Runtime Error 438 VBA code issue.
4. Use a Registry Cleaner to Clean the Registry of your Windows –
Clean your registry by any registry cleaner software so that it can fix and solve this VBA Runtime Error 438 object doesn’t support access problem from your PC completely.
5. Reinstall the Drivers for the Device on your PC –
By Reinstalling the drivers for the device will fix your Visual Basic outlook Runtime Error 438 fix problem.
6. Run a Full Scan of your Windows PC for Malware or Virus –
- Go to the start menu
- Search or go to the “Microsoft Security Essentials” there
- Click on it and opens it there
- A Pop-up will open there
- Check the ‘Full‘ option there to scan thoroughly
- After, click on the ‘Scan Now‘ option to scan carefully
- After scanning, close the tab
- That’s it, done
By running a full scan of your PC can get rid out of this Runtime Error 438 word Excel VBA problems from your PC completely.
7. Create a System Restore Point on your Windows PC –
- Go to the start menu
- Search or go to the ‘System Restore.’
- Clicks on it and open it there
- After that, tick on the “Recommended settings” or ‘Select a restore point‘ there
- After selecting, click on the Next option there
- Now, follow the wizard
- After completing, close the tab
- That’s it, done
So by applying this method on your Microsoft Windows PC can quickly solve this VBA Runtime Error 438 excel MAC issue.
“ OR “
- Go to the start menu
- Search or go to the ‘System Properties.’
- Click on it and opens it
- After that, go to the “System Protection” option there
- Now, click on the “System Restore” option there
- & Create a Restore point there
- After completing, close the tab
- That’s it, done
Run a system restore and creating a new restore point by any of these two methods can solve this Visual Basic Runtime Error 438 ecw excel mac problem from your PC completely.
8. Troubleshoot & Run an Automatic Windows Repair on your PC –
- Go to the start menu
- Search or go to the PC settings there
- Click on the ‘Troubleshoot‘ option there
- After opening, click on the ‘Advanced options‘ there
- Then, click on the “Automatic Repair” option there
- After troubleshooting, close the tab
- That’s it, done
By running an automatic repair of your PC can get rid out of this Microsoft Visual Basic excel vba Runtime Error 438 problem from your PC.
9. Disable or Uninstall your Windows Antivirus Software on your PC –
By Disabling or uninstalling your antivirus software can quickly fix and solve this Runtime Error 438 object doesn’t support this property or method epaceengagement problem.
10. Restart your Windows PC [OPTIONAL] –
- Go to the Start menu
- Click on the right side of ‘Shutdown.’
- Click on Restart option there to restart
- That’s it, done
If this is your first time you have seen this stop error screen then by restarting your PC again will quickly fix this Microsoft Visual Basic Runtime Error 438 VBA problem.
These are the quick and the best way methods to get quickly rid out of this Microsoft Visual Basic Runtime Error 438 VBA Windows PC Code problem from you entirely. Hope these solutions will surely help you to get back from this Microsoft Visual Basic Runtime Error 438 VBA issue.
If you are facing or falling in this Microsoft Visual Basic Runtime Error 438 VBA Windows PC Code problem or any error problem, then comment down the error problem below so that we can fix and solve it too by our top best quick methods guides.