Skip to content

Latest commit

 

History

History

Documentation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Fred the Developer Design Document

Fred consists of four different classes, each written 100% in VBA and completely independent of the others. That reduces bloat in projects because you can take only what you need and leave the rest.

This is an overview of Fred's class and method structure. Click on one of the links below to go to more detailed use information.

NOTE: Documentation is still under construction

fredDeveloper_Assert

fredDeveloper_ClientSettings

fredDeveloper_Events

fredDeveloper_ModuleManager

Properties

These are stored under Excel's built in ThisWorkbook.CustomDocumentProperties when using the fredDeveloper_Events class. By storing values here, the set values persist not only between VBA run calls, but remain even if you close and reopen your workbook (assuming you saved, of course). Fred uses these behind the scenes when doing tasks such as logging debugging output.

If the Type column refers to a custom Fred enumeration, then the property is of type msoPropertyTypeNumber. Microsoft defines the available property types on their Office VBA documentation.

Field Name Document Property Type Description Default Value
DebugLogging msoPropertyTypeNumber Of type fredDebugLogMode. If not set to Disabled, then during run time any debugging lines will write to the Immediate Window, an external file path as specified in DebugExternalFileLoggingPath, or both Disabled
DebugExternalFilePath msoPropertyTypeString If DebugLogging set to an external mode, debug lines will write to the text file log specified within this parameter ThisWorkbook.Path

Enumerations

fredDebugLogMode

This enum is contained within the fredDeveloper class.

Enum Name Value Description
Disabled 0 Fred will ignore calls to output a debugging line
ToImmediateOnly 1 Debug lines will print to the Immediate Window only
ToExternalOnly 2 Debug lines will print to an external file specified by DebugExternalFilePath
ToImmediateAndExternal 3 Debug lines will print to both the Immediate Window and the external file

fredEventSettings

This enum is contained within the fredDeveloper class. This is used exclusively by the RestoreDefaultSetting method to limit the script to only the values in CustomDocumentProperties from fredDeveloper_Events. No others can be affected.

Enum Name Value Description
DebugLogging 0
DebugExternalFilePath 1