Загрузка страницы

What is the Excel VBA (Macro) Date Variable Type

Grab the Free VBA Quick Reference Guide
https://www.chrisjterrell.com/excel-vba-quick-reference-guide/
In this video, we declare (or dim) a date variable and then add a day to the date variable and then add 8 hours. For the "date" variable, in almost every programming language 1 = One Day.

Code:
===============
Sub DateVar()

'==========Date ================================================
'default = 00:00:00
Dim dte As Date

dte = "1/1/1900"
Debug.Print dte

dte = dte + 1
Debug.Print dte

dte = dte + 0.25
Debug.Print dte

End Sub

Видео What is the Excel VBA (Macro) Date Variable Type канала EverydayVBA
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 июня 2016 г. 20:30:09
00:02:38
Яндекс.Метрика