Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/Reference/Modules/Constants/VbAppWinStyle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: VbAppWinStyle
parent: Constants Module
permalink: /tB/Modules/Constants/VbAppWinStyle
redirect_from:
- /tB/Core/VbAppWinStyle
- /tB/Core/vbHide
- /tB/Core/vbNormalFocus
- /tB/Core/vbMinimizedFocus
- /tB/Core/vbMaximizedFocus
- /tB/Core/vbNormalNoFocus
- /tB/Core/vbMinimizedNoFocus
---
# VbAppWinStyle
{: .no_toc }

Window style values for the *windowstyle* argument of the [**Shell**](../Interaction/Shell) function.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbHide**{: #vbHide } | 0 | Window is hidden and focus is passed to the hidden window. |
| **vbNormalFocus**{: #vbNormalFocus } | 1 | Window has focus and is restored to its original size and position. |
| **vbMinimizedFocus**{: #vbMinimizedFocus } | 2 | Window is displayed as an icon with focus. |
| **vbMaximizedFocus**{: #vbMaximizedFocus } | 3 | Window is maximized with focus. |
| **vbNormalNoFocus**{: #vbNormalNoFocus } | 4 | Window is restored to its most recent size and position. The currently active window remains active. |
| **vbMinimizedNoFocus**{: #vbMinimizedNoFocus } | 6 | Window is displayed as an icon. The currently active window remains active. |

### See Also

- [Shell](../Interaction/Shell) function

{% include VBA-Attribution.md %}
22 changes: 22 additions & 0 deletions docs/Reference/Modules/Constants/VbArchitecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: VbArchitecture
parent: Constants Module
permalink: /tB/Modules/Constants/VbArchitecture
redirect_from:
- /tB/Core/VbArchitecture
- /tB/Core/vbArchWin32
- /tB/Core/vbArchWin64
---
# VbArchitecture
{: .no_toc }

Processor architecture values returned by the [**ProcessorArchitecture**](../Compilation/ProcessorArchitecture) function.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbArchWin32**{: #vbArchWin32 } | 0 | 32-bit (x86) Windows. |
| **vbArchWin64**{: #vbArchWin64 } | 1 | 64-bit (AMD64) Windows. |

### See Also

- [ProcessorArchitecture](../Compilation/ProcessorArchitecture) function
24 changes: 24 additions & 0 deletions docs/Reference/Modules/Constants/VbCalendar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: VbCalendar
parent: Constants Module
permalink: /tB/Modules/Constants/VbCalendar
redirect_from:
- /tB/Core/VbCalendar
- /tB/Core/vbCalGreg
- /tB/Core/vbCalHijri
---
# VbCalendar
{: .no_toc }

Calendar type values used by the [**Calendar**](../DateTime/Calendar) property.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbCalGreg**{: #vbCalGreg } | 0 | The Gregorian calendar. |
| **vbCalHijri**{: #vbCalHijri } | 1 | The Hijri calendar. |

### See Also

- [Calendar](../DateTime/Calendar) property

{% include VBA-Attribution.md %}
24 changes: 24 additions & 0 deletions docs/Reference/Modules/Constants/VbCallType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: VbCallType
parent: Constants Module
permalink: /tB/Modules/Constants/VbCallType
redirect_from:
- /tB/Core/VbCallType
- /tB/Core/vbMethod
- /tB/Core/vbGet
- /tB/Core/vbLet
- /tB/Core/vbSet
---
# VbCallType
{: .no_toc }

Procedure call types used by the *calltype* argument of the **CallByName** function.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbMethod**{: #vbMethod } | 1 | A method has been invoked. |
| **vbGet**{: #vbGet } | 2 | A **Property Get** procedure. |
| **vbLet**{: #vbLet } | 4 | A **Property Let** procedure. |
| **vbSet**{: #vbSet } | 8 | A **Property Set** procedure. |

{% include VBA-Attribution.md %}
22 changes: 22 additions & 0 deletions docs/Reference/Modules/Constants/VbCompareMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: VbCompareMethod
parent: Constants Module
permalink: /tB/Modules/Constants/VbCompareMethod
redirect_from:
- /tB/Core/VbCompareMethod
- /tB/Core/vbBinaryCompare
- /tB/Core/vbTextCompare
- /tB/Core/vbDatabaseCompare
---
# VbCompareMethod
{: .no_toc }

Text comparison modes used by string functions such as [**InStr**](../Strings/InStr), [**InStrRev**](../Strings/InStrRev), [**Replace**](../Strings/Replace), [**StrComp**](../Strings/StrComp), [**Filter**](../Strings/Filter), and [**Split**](../Strings/Split).

| Constant | Value | Description |
|----------|-------|-------------|
| **vbBinaryCompare**{: #vbBinaryCompare } | 0 | Performs a binary comparison. |
| **vbTextCompare**{: #vbTextCompare } | 1 | Performs a textual comparison. |
| **vbDatabaseCompare**{: #vbDatabaseCompare } | 2 | For Microsoft Access (Windows only), performs a comparison based on information contained in the database. |

{% include VBA-Attribution.md %}
30 changes: 30 additions & 0 deletions docs/Reference/Modules/Constants/VbDateTimeFormat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: VbDateTimeFormat
parent: Constants Module
permalink: /tB/Modules/Constants/VbDateTimeFormat
redirect_from:
- /tB/Core/VbDateTimeFormat
- /tB/Core/vbGeneralDate
- /tB/Core/vbLongDate
- /tB/Core/vbShortDate
- /tB/Core/vbLongTime
- /tB/Core/vbShortTime
---
# VbDateTimeFormat
{: .no_toc }

Format codes for the [**FormatDateTime**](../Strings/FormatDateTime) function.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbGeneralDate**{: #vbGeneralDate } | 0 | Display a date and/or time. For real numbers, display a date and time; if there is no fractional part, display a date only; if there is no integer part, display a time only. Date and time display is determined by your system settings. |
| **vbLongDate**{: #vbLongDate } | 1 | Display a date in the long date format specified by the system regional settings. |
| **vbShortDate**{: #vbShortDate } | 2 | Display a date in the short date format specified by the system regional settings. |
| **vbLongTime**{: #vbLongTime } | 3 | Display a time in the long time format specified by the system regional settings. |
| **vbShortTime**{: #vbShortTime } | 4 | Display a time in the short time format specified by the system regional settings. |

### See Also

- [FormatDateTime](../Strings/FormatDateTime) function

{% include VBA-Attribution.md %}
32 changes: 32 additions & 0 deletions docs/Reference/Modules/Constants/VbDayOfWeek.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: VbDayOfWeek
parent: Constants Module
permalink: /tB/Modules/Constants/VbDayOfWeek
redirect_from:
- /tB/Core/VbDayOfWeek
- /tB/Core/vbUseSystemDayOfWeek
- /tB/Core/vbSunday
- /tB/Core/vbMonday
- /tB/Core/vbTuesday
- /tB/Core/vbWednesday
- /tB/Core/vbThursday
- /tB/Core/vbFriday
- /tB/Core/vbSaturday
---
# VbDayOfWeek
{: .no_toc }

Day-of-week constants used as the *firstdayofweek* argument and the return values of date functions such as [**DateAdd**](../DateTime/DateAdd), [**DateDiff**](../DateTime/DateDiff), [**DatePart**](../DateTime/DatePart), and [**Weekday**](../DateTime/Weekday).

| Constant | Value | Description |
|----------|-------|-------------|
| **vbUseSystemDayOfWeek**{: #vbUseSystemDayOfWeek } | 0 | Use the day of the week specified in the system regional settings. |
| **vbSunday**{: #vbSunday } | 1 | Sunday (default). |
| **vbMonday**{: #vbMonday } | 2 | Monday. |
| **vbTuesday**{: #vbTuesday } | 3 | Tuesday. |
| **vbWednesday**{: #vbWednesday } | 4 | Wednesday. |
| **vbThursday**{: #vbThursday } | 5 | Thursday. |
| **vbFriday**{: #vbFriday } | 6 | Friday. |
| **vbSaturday**{: #vbSaturday } | 7 | Saturday. |

{% include VBA-Attribution.md %}
36 changes: 36 additions & 0 deletions docs/Reference/Modules/Constants/VbFileAttribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: VbFileAttribute
parent: Constants Module
permalink: /tB/Modules/Constants/VbFileAttribute
redirect_from:
- /tB/Core/VbFileAttribute
- /tB/Core/vbNormal
- /tB/Core/vbReadOnly
- /tB/Core/vbHidden
- /tB/Core/VbSystem
- /tB/Core/vbVolume
- /tB/Core/vbDirectory
- /tB/Core/vbArchive
- /tB/Core/vbAlias
---
# VbFileAttribute
{: .no_toc }

Attribute flags for files and directories used by [**Dir**](../FileSystem/Dir), [**GetAttr**](../FileSystem/GetAttr), and [**SetAttr**](../FileSystem/SetAttr). Combine multiple flags with **Or**.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbNormal**{: #vbNormal } | 0 | Normal (default for **Dir** and **SetAttr**). |
| **vbReadOnly**{: #vbReadOnly } | 1 | Read-only. |
| **vbHidden**{: #vbHidden } | 2 | Hidden. |
| **VbSystem**{: #VbSystem } | 4 | System file. |
| **vbVolume**{: #vbVolume } | 8 | Volume label. |
| **vbDirectory**{: #vbDirectory } | 16 | Directory or folder. |
| **vbArchive**{: #vbArchive } | 32 | File has changed since the last backup. |
| **vbAlias**{: #vbAlias } | 64 | Identifier is an alias (legacy Macintosh). |

### See Also

- [Dir](../FileSystem/Dir), [GetAttr](../FileSystem/GetAttr), [SetAttr](../FileSystem/SetAttr)

{% include VBA-Attribution.md %}
24 changes: 24 additions & 0 deletions docs/Reference/Modules/Constants/VbFirstWeekOfYear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: VbFirstWeekOfYear
parent: Constants Module
permalink: /tB/Modules/Constants/VbFirstWeekOfYear
redirect_from:
- /tB/Core/VbFirstWeekOfYear
- /tB/Core/vbUseSystem
- /tB/Core/vbFirstJan1
- /tB/Core/vbFirstFourDays
- /tB/Core/vbFirstFullWeek
---
# VbFirstWeekOfYear
{: .no_toc }

First-week-of-year selectors used as the *firstweekofyear* argument of date functions such as [**DateDiff**](../DateTime/DateDiff), [**DatePart**](../DateTime/DatePart), and [**Weekday**](../DateTime/Weekday).

| Constant | Value | Description |
|----------|-------|-------------|
| **vbUseSystem**{: #vbUseSystem } | 0 | Use the setting from the system regional settings. |
| **vbFirstJan1**{: #vbFirstJan1 } | 1 | Start with the week in which January 1 occurs (default). |
| **vbFirstFourDays**{: #vbFirstFourDays } | 2 | Start with the first week that has at least four days in the new year. |
| **vbFirstFullWeek**{: #vbFirstFullWeek } | 3 | Start with the first full week of the year. |

{% include VBA-Attribution.md %}
49 changes: 49 additions & 0 deletions docs/Reference/Modules/Constants/VbIMEStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: VbIMEStatus
parent: Constants Module
permalink: /tB/Modules/Constants/VbIMEStatus
redirect_from:
- /tB/Core/VbIMEStatus
- /tB/Core/vbIMENoOp
- /tB/Core/vbIMEModeNoControl
- /tB/Core/vbIMEOn
- /tB/Core/vbIMEModeOn
- /tB/Core/vbIMEOff
- /tB/Core/vbIMEModeOff
- /tB/Core/vbIMEDisable
- /tB/Core/vbIMEModeDisable
- /tB/Core/vbIMEHiragana
- /tB/Core/vbIMEModeHiragana
- /tB/Core/vbIMEKatakanaDbl
- /tB/Core/vbIMEModeKatakana
- /tB/Core/vbIMEKatakanaSng
- /tB/Core/vbIMEModeKatakanaHalf
- /tB/Core/vbIMEAlphaDbl
- /tB/Core/vbIMEModeAlphaFull
- /tB/Core/vbIMEAlphaSng
- /tB/Core/vbIMEModeAlpha
- /tB/Core/vbIMEModeHangulFull
- /tB/Core/vbIMEModeHangul
---
# VbIMEStatus
{: .no_toc }

Input Method Editor mode constants. Each value is exposed under both the legacy `vbIME...` name and the newer `vbIMEMode...` name; the two names with the same value are interchangeable.

The constants applicable to a given mode depend on the system locale. Values 4–8 apply to Japanese locales, and values 9 and 10 apply to Korean locales.

| Constants | Value | Description |
|-----------|-------|-------------|
| **vbIMENoOp**{: #vbIMENoOp } / **vbIMEModeNoControl**{: #vbIMEModeNoControl } | 0 | Don't control the IME (default). |
| **vbIMEOn**{: #vbIMEOn } / **vbIMEModeOn**{: #vbIMEModeOn } | 1 | IME on. |
| **vbIMEOff**{: #vbIMEOff } / **vbIMEModeOff**{: #vbIMEModeOff } | 2 | IME off. |
| **vbIMEDisable**{: #vbIMEDisable } / **vbIMEModeDisable**{: #vbIMEModeDisable } | 3 | IME disabled. |
| **vbIMEHiragana**{: #vbIMEHiragana } / **vbIMEModeHiragana**{: #vbIMEModeHiragana } | 4 | Full-width Hiragana mode. |
| **vbIMEKatakanaDbl**{: #vbIMEKatakanaDbl } / **vbIMEModeKatakana**{: #vbIMEModeKatakana } | 5 | Full-width Katakana mode. |
| **vbIMEKatakanaSng**{: #vbIMEKatakanaSng } / **vbIMEModeKatakanaHalf**{: #vbIMEModeKatakanaHalf } | 6 | Half-width Katakana mode. |
| **vbIMEAlphaDbl**{: #vbIMEAlphaDbl } / **vbIMEModeAlphaFull**{: #vbIMEModeAlphaFull } | 7 | Full-width Alphanumeric mode. |
| **vbIMEAlphaSng**{: #vbIMEAlphaSng } / **vbIMEModeAlpha**{: #vbIMEModeAlpha } | 8 | Half-width Alphanumeric mode. |
| **vbIMEModeHangulFull**{: #vbIMEModeHangulFull } | 9 | Full-width Hangul mode. |
| **vbIMEModeHangul**{: #vbIMEModeHangul } | 10 | Half-width Hangul mode. |

{% include VBA-Attribution.md %}
38 changes: 38 additions & 0 deletions docs/Reference/Modules/Constants/VbMsgBoxResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: VbMsgBoxResult
parent: Constants Module
permalink: /tB/Modules/Constants/VbMsgBoxResult
redirect_from:
- /tB/Core/VbMsgBoxResult
- /tB/Core/vbOK
- /tB/Core/vbCancel
- /tB/Core/vbAbort
- /tB/Core/vbRetry
- /tB/Core/vbIgnore
- /tB/Core/vbYes
- /tB/Core/vbNo
- /tB/Core/vbTryAgain
- /tB/Core/vbContinue
---
# VbMsgBoxResult
{: .no_toc }

Identifies the button that was pressed to close a **MsgBox** dialog.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbOK**{: #vbOK } | 1 | **OK** button pressed. |
| **vbCancel**{: #vbCancel } | 2 | **Cancel** button pressed. |
| **vbAbort**{: #vbAbort } | 3 | **Abort** button pressed. |
| **vbRetry**{: #vbRetry } | 4 | **Retry** button pressed. |
| **vbIgnore**{: #vbIgnore } | 5 | **Ignore** button pressed. |
| **vbYes**{: #vbYes } | 6 | **Yes** button pressed. |
| **vbNo**{: #vbNo } | 7 | **No** button pressed. |
| **vbTryAgain**{: #vbTryAgain } | 10 | **Try Again** button pressed. |
| **vbContinue**{: #vbContinue } | 11 | **Continue** button pressed. |

### See Also

- [VbMsgBoxStyle](VbMsgBoxStyle)

{% include VBA-Attribution.md %}
Loading
Loading