0% found this document useful (0 votes)
29 views1 page

VBA Data Types: Object Type Prefix Description

This document summarizes the different data types that can be used in VBA, including string, integer, long, single, double, currency, date, boolean, and variant for basic data, as well as object types like document, range, table, row, column, cell, style, and selection that relate to Microsoft Word. Each data type is given a prefix code to identify it and a brief description of what kind of data it represents.

Uploaded by

KOUMTOUDJI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

VBA Data Types: Object Type Prefix Description

This document summarizes the different data types that can be used in VBA, including string, integer, long, single, double, currency, date, boolean, and variant for basic data, as well as object types like document, range, table, row, column, cell, style, and selection that relate to Microsoft Word. Each data type is given a prefix code to identify it and a brief description of what kind of data it represents.

Uploaded by

KOUMTOUDJI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

VBA Data Types

Object Type Prefix Description


String Data str Text
Integer Data int Whole numbers up to approx. 32,000
Long Data lng Whole numbers up to approx. 2 billion
Single Data sng Large floating point numbers with up to 6 decimal places of accuracy
Double Data dbl Even larger floating point numbers with up to 14 decimal places of accuracy
Currency Data cur Monetary values up to approx. 900 trillion with up to 4 decimal places of accuracy
Date Data dat Date and time
Boolean Data bln True or False
Variant Data vnt Indeterminate data type - any of the above

Document Word object doc A Word (open) document


Range Word object rng A text range
Table Word object tbl A Word table
Row Word object row A row in a table
Column Word object col A column in a table
Cell Word object cel A cell in a table
Style Word object stl A paragraph or character style
Selection Word object sel The Word object which is currently selected

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy