Get the Numeric Value for a Constant in VBA - VBA Quickie 9
Excel VBA Quickie Playlist: https://www.youtube.com/playlist?list=PLxhsXZXQXrUDjjYmKn5Wi3V6dkyjGpV9q
Excel File: https://www.teachexcel.com/excel-tutorial/2451/get-the-numeric-value-of-any-constant-in-vba?src=yt
Two simple tricks to get the number value for constants in VBA and Macros for Excel.
Constants in VBA are like variables whose values never change and it is important to be able to get the constant value of a constant without wasting time looking it up or searching for it.
This is especially helpful when you use the macro recorder to generate some code and compare it to your own macros because one version might use the numeric value of the constant and one version might use the name of the constant, and you want to make sure that you can quickly compare the two versions without issue.
Additional Resources
Constants in VBA (msft): https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/declaring-constants
List of Constants in Excel VBA (msft): https://docs.microsoft.com/en-us/office/vba/api/Excel.Constants
Excel Courses:
- VBA/Macro Course: https://www.teachexcel.com/vba-course-update.php
- Building Professional Forms: https://www.teachexcel.com/premium-courses/68/idiot-proof-forms-in-excel?src=youtube_v_Kr6szySbV0g
- Email Course: https://www.teachexcel.com/premium-courses/96/send-emails-from-excel-course?src=youtube_v_Kr6szySbV0g
TeachExcel.com
#msexcel #excelquickie #tutorial
Видео Get the Numeric Value for a Constant in VBA - VBA Quickie 9 канала TeachExcel
Excel File: https://www.teachexcel.com/excel-tutorial/2451/get-the-numeric-value-of-any-constant-in-vba?src=yt
Two simple tricks to get the number value for constants in VBA and Macros for Excel.
Constants in VBA are like variables whose values never change and it is important to be able to get the constant value of a constant without wasting time looking it up or searching for it.
This is especially helpful when you use the macro recorder to generate some code and compare it to your own macros because one version might use the numeric value of the constant and one version might use the name of the constant, and you want to make sure that you can quickly compare the two versions without issue.
Additional Resources
Constants in VBA (msft): https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/declaring-constants
List of Constants in Excel VBA (msft): https://docs.microsoft.com/en-us/office/vba/api/Excel.Constants
Excel Courses:
- VBA/Macro Course: https://www.teachexcel.com/vba-course-update.php
- Building Professional Forms: https://www.teachexcel.com/premium-courses/68/idiot-proof-forms-in-excel?src=youtube_v_Kr6szySbV0g
- Email Course: https://www.teachexcel.com/premium-courses/96/send-emails-from-excel-course?src=youtube_v_Kr6szySbV0g
TeachExcel.com
#msexcel #excelquickie #tutorial
Видео Get the Numeric Value for a Constant in VBA - VBA Quickie 9 канала TeachExcel
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Remove Chart Gaps in Excel with these 3 Tips](https://i.ytimg.com/vi/c73QiF6yd9o/default.jpg)
![30 Second VLOOKUP() in Excel](https://i.ytimg.com/vi/1XZPVjfP2Po/default.jpg)
![Prevent Charts from Printing in Excel - Excel Quickie 53](https://i.ytimg.com/vi/gdHt7Q0RZU4/default.jpg)
![Split & Combine Text Using Flash Fill in Excel](https://i.ytimg.com/vi/ztjm4iyX6dA/default.jpg)
![Calculate Work Days Between Dates Excluding Weekends and Holidays](https://i.ytimg.com/vi/VM1Sbv6Oe0g/default.jpg)
![Learn Advanced Data Filter Techniques in Excel](https://i.ytimg.com/vi/yXO3Emv3qpY/default.jpg)
![Locking UserForm Controls & Closing Using Esc - UserForm Course 5](https://i.ytimg.com/vi/PtMSpXKcYxY/default.jpg)
![Join Parts of a List With a Single Formula in Excel - (1 Minute Tutorials)](https://i.ytimg.com/vi/dOyuK_mmMJY/default.jpg)
![How to use the CONVERT Function in Excel](https://i.ytimg.com/vi/7-peLshzqdQ/default.jpg)
![Excel Prank - Sheet Jumping to Fun - Excel Quickie 60](https://i.ytimg.com/vi/D23QJLLTvjg/default.jpg)
![3 Quick Tips to Format Your Excel Sheets the Same](https://i.ytimg.com/vi/Q3D3erZ501s/default.jpg)
![Anonymize Excel Data Automatically Before Printing](https://i.ytimg.com/vi/8HebCi6ZrxQ/default.jpg)
![TEXTJOIN() Function to Combine Text in Excel - Excel Quickie 51](https://i.ytimg.com/vi/nWCZTufF_5Y/default.jpg)
![ROMAN & ARABIC Function in Excel - EQ 89](https://i.ytimg.com/vi/CndBtFvjJ6s/default.jpg)
![Save Hours with the Selection Pane in Excel - Excel Quickie 80](https://i.ytimg.com/vi/Q535zL2ri2M/default.jpg)
![Quickly Delete All Comments from Excel](https://i.ytimg.com/vi/x6w3JQCLIfU/default.jpg)
![Data Analysis in Excel 9 - Filter Data Based on The Frist, Last, or Middle Values in a Cell in Excel](https://i.ytimg.com/vi/w5WDXZihdOg/default.jpg)
![3 Quick Printing Tips for Excel - EQ 100](https://i.ytimg.com/vi/JeFSIMeEJzY/default.jpg)
![Slicer Power Analysis in Excel - Pivot Tables + Pivot Charts + Tables + Slicers](https://i.ytimg.com/vi/jZgL6DGcoB4/default.jpg)
![8 Tips for Easier Coding in VBA](https://i.ytimg.com/vi/UQjpH0a8Na0/default.jpg)