The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
章節目錄
1-1
Content list
1-2
About
1-3
Chapter 1: Getting started with VBA
1-4
Section 1.1: Accessing the Visual Basic Editor in Microsoft Oce
1-5
Section 1.2: Debugging
1-6
Section 1.3: First Module and Hello World
1-7
Chapter 2: Comments
1-8
Section 2.1: Apostrophe Comments
1-9
Section 2.2: REM Comments
1-10
Chapter 3: String Literals - Escaping, non-printable characters and line-continuations
1-11
Section 3.1: Escaping the " character
1-12
Section 3.2: Assigning long string literals
1-13
Section 3.3: Using VBA string constants
1-14
Chapter 4: VBA Option Keyword
1-15
Section 4.1: Option Explicit
1-16
Section 4.2: Option Base {0 | 1}
1-17
Section 4.3: Option Compare {Binary | Text | Database}
1-18
Chapter 5: Declaring Variables
1-19
Section 5.1: Type Hints
1-20
Section 5.2: Variables
1-21
Section 5.3: Constants (Const)
1-22
Section 5.4: Declaring Fixed-Length Strings
1-23
Section 5.5: When to use a Static variable
1-24
Section 5.6: Implicit And Explicit Declaration
1-25
Section 5.7: Access Modifiers
1-26
Chapter 6: Declaring and assigning strings
1-27
Section 6.1: Assignment to and from a byte array
1-28
Section 6.2: Declare a string constant
1-29
Section 6.3: Declare a variable-width string variable
1-30
Section 6.4: Declare and assign a fixed-width string
1-31
Section 6.5: Declare and assign a string array
1-32
Section 6.6: Assign specific characters within a string using Mid statement
1-33
Chapter 7: Concatenating strings
1-34
Section 7.1: Concatenate an array of strings using the Join function
1-35
Section 7.2: Concatenate strings using the & operator
1-36
Chapter 8: Frequently used string manipulation
1-37
Section 8.1: String manipulation frequently used examples
1-38
Chapter 9: Substrings
1-39
Section 9.1: Use Left or Left$ to get the 3 left-most characters in a string
1-40
Section 9.2: Use Right or Right$ to get the 3 right-most characters in a string
1-41
Section 9.3: Use Mid or Mid$ to get specific characters from within a string
1-42
Section 9.4: Use Trim to get a copy of the string without any leading or trailing spaces
1-43
Chapter 10: Searching within strings for the presence of substrings
1-44
Section 10.1: Use InStr to determine if a string contains a substring
1-45
Section 10.2: Use InStrRev to find the position of the last instance of a substring
1-46
Section 10.3: Use InStr to find the position of the first instance of a substring
1-47
Chapter 11: Assigning strings with repeated characters
1-48
Section 11.1: Use the String function to assign a string with n repeated characters
1-49
Section 11.2: Use the String and Space functions to assign an n-character string
1-50
Chapter 12: Measuring the length of strings
1-51
Section 12.1: Use the Len function to determine the number of characters in a string
1-52
Section 12.2: Use the LenB function to determine the number of bytes in a string