Premium Only Content

Excel VBA basics: Data types, DIM & SET (Learn to use them correctly)
May 17, 2018 Excel VBA & Macros Tutorials
Get access to the full course here: https://www.xelplus.com/course/excel-vba-excel-macros/
It’s best practice to declare your Excel VBA variables before you use them. Declaring variables means that you give VBA a heads up that it needs to free up some memory space for your variables which will in most cases be less than the default. That's why it's important to understand the concept of data types and how much memory space each of these types will take. The less memory you allocate to a variable, the faster your code will run. I show the range associated to each data type - such as numbers, text, date, currency etc in the video.
By default VBA assigns the data type “variant” to each variable. Variant means it changes depending on the data type so is it text, number or date. It will allocate around 16 bytes of memory if it’s a number and 22 bytes + length of string.
★ Links to related videos: ★
Learn about Visual Basic Editor: https://youtu.be/NpvvwrdDcQk
Properties & methods in VBA: https://youtu.be/uYHrzo2gzbo
Blog Post: https://www.xelplus.com/excel-vba-data-types-dim-set/
★ My Online Excel Courses ★
Courses ► https://courses.xelplus.com/
✉ Subscribe & get my TOP 10 Excel formulas e-book for free
https://www.xelplus.com/free-ebook/
EXCEL RESOURCES I Recommend: https://www.xelplus.com/resources/
Get Office 365: https://microsoft.msafflnk.net/15OEg
Microsoft Surface: https://microsoft.msafflnk.net/c/1327040/451518/7593
GEAR
Camera: https://amzn.to/2FLiFho
Screen recorder: http://techsmith.pxf.io/c/1252781/347799/5161
Microphone: https://amzn.to/2DVKstA
Lights: http://amzn.to/2eJKg1U
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#MsExcel #ExcelVBA #LeilaGharani
-
1:02:08
Man in America
9 hours agoTrump to BAN the COVID Vaxx?! mRNA in Your Organic Meat?! w/ Kim Bright
22.5K5 -
57:42
Flyover Conservatives
23 hours agoThe Great Gold Cover-Up: Is Fort Knox EMPTY?! - Clay Clark + Dr. Kirk Elliott | FOC Show
22.2K7 -
1:24:40
Kim Iversen
7 hours agoJeffrey Sachs Just Exposed the Truth They Don’t Want You to Hear
39.2K39 -
2:11:32
Glenn Greenwald
5 hours agoGlenn From Moscow: Russia Reacts to Trump; Michael Tracey Debates Ukraine War | SYSTEM UPDATE #413
72.3K48 -
Slightly Offensive
5 hours ago $0.81 earnedGOV. RAMASWAMY? Vivek to import 1 BILLION INDIANS to OHIO | Nightly Offensive
37.7K20 -
4:51:08
Wahzdee
8 hours agoSniper Elite Then Extraction Games—No Rage Challenge! 🎮🔥 - Tuesday Solos
71.3K3 -
2:12:58
Robert Gouveia
7 hours agoSenator's Wife EXPOSED! Special Counsel ATTACKS; AP News BLOWN OUT
79.5K41 -
55:07
LFA TV
1 day agoDefending the Indefensible | TRUMPET DAILY 2.25.25 7PM
33.7K16 -
6:09:26
Barry Cunningham
14 hours agoTRUMP DAILY BRIEFING - WATCH WHITE HOUSE PRESS CONFERENCE LIVE! EXECUTIVE ORDERS AND MORE!
101K50 -
1:46:37
Game On!
9 hours ago $0.51 earnedPUMP THE BRAKES! Checking Today's Sports Betting Lines!
51.6K3