{"id":896,"date":"2018-06-30T19:07:20","date_gmt":"2018-06-30T19:07:20","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=896"},"modified":"2024-03-16T13:26:01","modified_gmt":"2024-03-16T13:26:01","slug":"variables","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/training\/variables\/","title":{"rendered":"Variables"},"content":{"rendered":"\n
Because VBA is a programming language, it shares common principles and elements with other languages. One of them is variables.<\/p>\n\n\n\n
A variable is a reserved place in a computer memory that can be used by a program. Excel stores there the value assigned to that variable.<\/p>\n\n\n\n
When you declare the variable, you can define what kind of data you want to store there. For example:<\/p>\n\n\n\n
Dim myVal As Integer<\/pre>\n\n\n\nIt means that you reserve 2 bytes for the integer value.<\/p>\n\n\n\n
Without data type<\/h3>\n\n\n\n