Getting Started with macros and VBA for Excel (ii)-Basics

Source: Internet
Author: User

I. Properties and Methods

  1. Properties

    Click on the object above and the corresponding property is displayed below:

    

  2. Methods

    Double-click the upper-left object to see the appropriate method:

    

ii. Types of data
Byte    0To255Boolean    TrueOrFalseInteger- +,768To +,767Long(Long integer type)-2,147,483,648To2,147,483,647 Single(single-precision floating-point type)Double(double-precision floating-point type) CurrencyDecimal    Date     -Years1Month1Day to9999Years AMonth toDayObjectAnyObjectReferencesStringVariant (number) -Bytes Any numeric value, maximum up toDoublethe range variant (character) ABytes plus string length and variable lengthsStringthere is the same scope for users to customize all elements required the range of each element is the same as the range of its own data type. (using Type)

Third, variable

Getting Started with macros and VBA for Excel (ii)-Basics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.