Article ID: 161923 - Last Review: January 19, 2007 - Revision: 1.1 WD97: Troubleshooting Variables and Data TypesThis article was previously published under Q161923 SUMMARY
This article offers suggestions for using variables and data types in
Microsoft Visual Basic for Applications in the applications listed at
the beginning of this article.
MORE INFORMATION
When declaring variables, the default data type is Variant. Programmers
should ideally specify specific data types and not use the Variant data
types. Variant data types consume more memory, do not offer the same
performance as specific data types, and can promote errors in programming
logic.
Make sure variables are properly declared. Consider the following example: NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base: 176476
(http://support.microsoft.com/kb/176476/EN-US/
)
OFF: Office Assistant Not Answering Visual Basic Questions
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435
(http://support.microsoft.com/kb/163435/EN-US/
)
VBA: Programming Resources for Visual Basic for
Applications
| Article Translations
|

Back to the top
