Remove Explicit Let Statement Quick Fix

Makes the 'Let' keyword of a value assignment implicit.

This quick-fix is available for the ObsoleteLetStatement inspection

Applicability

This quick-fix can be applied as a single operation at the following scopes:
  • Procedure
  • Module
  • Project

Examples

 This example depicts the state of module(s) before and after applying the quick-fix.

Before
Module1 (Any)
Option Explicit Public Sub DoSomething() Dim value As Long Let value = 42 Debug.Print value End Sub
After
Module1 (Any)
Option Explicit Public Sub DoSomething() Dim value As Long value = 42 Debug.Print value End Sub

Rubberduck.CodeAnalysis.QuickFixes.Concrete.RemoveExplicitLetStatementQuickFix.cs (Prerelease-v2.5.2.6174)