You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<value>Implicit references to the active sheet make the code frail and harder to debug. Consider making these references explicit when they're intended, and prefer working off object references.</value>
169
+
<value>Implicit references to the active sheet make the code frail and harder to debug. Consider making these references explicit when they're intended, and prefer working off object references. Ignore if the member call is referring to a type Rubberduck can't resolve.</value>
<value>Implicit references to the active workbook make the code frail and harder to debug. Consider making these references explicit when they're intended, and prefer working off object references.</value>
175
+
<value>Implicit references to the active workbook make the code frail and harder to debug. Consider making these references explicit when they're intended, and prefer working off object references. Ignore if the member call is referring to a type Rubberduck can't resolve.</value>
<value>Rubberduck cannot see variables that aren't declared. VBA will happily compile a typo and you'll soon be asking an embarassing question on Stack Overflow. Avoid problems, use 'Option Explicit'. </value>
277
+
<value>Rubberduck cannot see variables that aren't declared. VBA will happily compile a typo: use 'Option Explicit' to prevent successfully compiling an erroneous program.</value>
publicstaticDeclarationActiveSheet=newDeclaration(newQualifiedMemberName(WorkbookModuleName,"ActiveSheet"),Workbook,"Excel.Workbook","Worksheet",false,false,Accessibility.Public,DeclarationType.PropertyGet);// cheating on return type
publicstaticDeclarationCellsAssign=newDeclaration(newQualifiedMemberName(RangeModuleName,"Cells"),Range,"Excel.Range","Range",false,false,Accessibility.Public,DeclarationType.PropertyLet);// cheating to simulate default property of return type.
@@ -163,28 +163,28 @@ private class GlobalClass
163
163
164
164
privateclassApplicationClass
165
165
{
166
-
publicstaticreadonlyDeclarationApplication=newDeclaration(newQualifiedMemberName(ExcelModuleName,"Application"),ExcelLib.Excel,"Application","Application",false,false,Accessibility.Global,DeclarationType.Module);// cheating, it's actually a class.
publicstaticDeclarationRangeAssign=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"Range"),Application,"Excel.Application","Range",true,false,Accessibility.Global,DeclarationType.PropertyLet);// cheating to simuate default property of return type.
publicstaticDeclarationCellsAssign=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"Cells"),Application,"Excel.Application","Range",false,false,Accessibility.Global,DeclarationType.PropertyLet);// cheating to simulate default property of return type.
publicstaticDeclarationActiveSheet=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"ActiveSheet"),Application,"Excel.Application","Worksheet",false,false,Accessibility.Global,DeclarationType.PropertyGet);// cheating on return type
publicstaticDeclarationRangeAssign=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"Range"),Application,"Excel.Application","Range",true,false,Accessibility.Public,DeclarationType.PropertyLet);// cheating to simuate default property of return type.
publicstaticDeclarationCellsAssign=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"Cells"),Application,"Excel.Application","Range",false,false,Accessibility.Public,DeclarationType.PropertyLet);// cheating to simulate default property of return type.
publicstaticDeclarationActiveSheet=newDeclaration(newQualifiedMemberName(ApplicationModuleName,"ActiveSheet"),Application,"Excel.Application","Worksheet",false,false,Accessibility.Public,DeclarationType.PropertyGet);// cheating on return type
0 commit comments