In the following code example, an implicit instance of Microsoft Excel is created, and its default property (the string "Microsoft Excel") is returned and assigned to the Variant RetVal. If you're using Excel, you may encounter the "Runtime Error 424" error with message "Object Required". In the following code example, an implicit instance of Microsoft Excel is created, and its default property (the string "Microsoft Excel") is returned and assigned to the Variant RetVal. The second — and more methodical — method is … I think the reason that this is happening could be because TextBox1 is scoping to the VBA module and its associated sheet, while Range is scoping to the "Active Sheet". A subsequent attempt to use RetVal as an object reference causes this error: Dim RetVal ' Implicitly a Variant. The Overflow Blog Learning to work asynchronously takes time There is an easy way to do this, and it works very well to fix the majority of Runtime 424 errors in VBA: The first — and most effective — solution is to manually comb through the code. The first code line, Option Explicit means (in simple terms) that all of your variables have to be explicitly declared by Dim statements. EDIT It looks like you may be able to use the GetObject function to pull the textbox from the workbook. Excel-Forum: Laufzeitfehler 424 "Objekt erforderlich" hier der Originaltext des Makro, das sich hinter einer Schaltfläche in der UserForm PROGNOSEN in der Datei STEUERUNG101.XLS befindet. Excel VBA マクロのエラー 424 「オブジェクトが必要です。」の対処法を紹介します。 Variant 型にオブジェクトが設定されていないときに操作したときに発生します。 エラーの基本的な対処法は、エラー箇所の特定とその原因となったコードをデバッグします。 Browse other questions tagged excel vba excel-vba vlookup or ask your own question. They can be any type, including object, integer, string, or even a variant. This line: Dim envFrmwrkPath As Range is declaring the variable envFrmwrkPath of type Range.This means that you can only set it to a range.