This document provides a quick reference guide for Excel VBA macros, covering topics such as the coding window, running and debugging code, operators, procedures and functions, data types, range and cell properties/methods, conditional statements, loops, arrays, worksheets, and more. It explains the syntax and use of many common VBA commands in just a few lines of concise text.
Excel 2016 VBA PPT Slide Deck - For Basic to Adavance VBA LearningPrantikMaity6
Title: Mastering Excel VBA 2016
Introduction:
Unlock the full potential of Microsoft Excel with Visual Basic for Applications (VBA) 2016. This PowerPoint presentation is designed to guide you through the fundamentals and advanced techniques of Excel VBA, empowering you to automate tasks, enhance productivity, and unleash the true power of data manipulation.
1. Understanding VBA Basics:
Explore the foundational concepts of VBA programming, including variables, data types, control structures, and procedures. Gain insights into the VBA editor and learn how to write and execute your first macro.
2. Automating Tasks with Macros:
Discover how to record macros to automate repetitive tasks effortlessly. Learn best practices for editing and debugging macros, and customize them to suit your specific needs. Harness the power of macros to streamline your workflow and save valuable time.
3. Working with Objects and Methods:
Delve into the world of objects and methods in Excel VBA. Learn how to manipulate worksheets, ranges, cells, and other Excel objects programmatically. Master essential techniques for navigating through workbooks, formatting data, and performing calculations with precision.
4. Event-Driven Programming:
Unlock the potential of event-driven programming in Excel VBA. Explore how to trigger macros automatically in response to specific user actions or worksheet events. Enhance interactivity and user experience by leveraging event-driven techniques effectively.
5. Advanced Topics in Excel VBA:
Take your VBA skills to the next level with advanced topics such as error handling, user-defined functions (UDFs), and interacting with external data sources. Dive deep into the intricacies of VBA programming and empower yourself to tackle complex challenges with confidence.
6. Practical Applications and Case Studies:
Gain practical insights into real-world applications of Excel VBA through interactive case studies and examples. Learn how leading organizations leverage VBA to automate reporting, analyze data, and drive informed decision-making.
**7. Integrating VBA with Other Office Applications:**
Explore the seamless integration of VBA across the Microsoft Office suite. Learn how to leverage VBA to automate tasks not only in Excel but also in other Office applications such as Word, PowerPoint, Outlook, and Access. Discover how VBA can streamline workflows by enabling data exchange and manipulation between different Office programs, maximizing efficiency and productivity.
**8. Customizing User Interfaces with VBA Forms:**
Dive into the realm of user interface customization with VBA forms. Explore how to design and create user-friendly interfaces using form controls such as buttons, checkboxes, textboxes, and dropdown lists. Learn how to enhance user experience by incorporating interactive elements and guiding users through complex processes, all within the familiar environment of Excel.
Excel 2016 VBA PPT Slide Deck - For Basic to Adavance VBA LearningPrantikMaity6
Title: Mastering Excel VBA 2016
Introduction:
Unlock the full potential of Microsoft Excel with Visual Basic for Applications (VBA) 2016. This PowerPoint presentation is designed to guide you through the fundamentals and advanced techniques of Excel VBA, empowering you to automate tasks, enhance productivity, and unleash the true power of data manipulation.
1. Understanding VBA Basics:
Explore the foundational concepts of VBA programming, including variables, data types, control structures, and procedures. Gain insights into the VBA editor and learn how to write and execute your first macro.
2. Automating Tasks with Macros:
Discover how to record macros to automate repetitive tasks effortlessly. Learn best practices for editing and debugging macros, and customize them to suit your specific needs. Harness the power of macros to streamline your workflow and save valuable time.
3. Working with Objects and Methods:
Delve into the world of objects and methods in Excel VBA. Learn how to manipulate worksheets, ranges, cells, and other Excel objects programmatically. Master essential techniques for navigating through workbooks, formatting data, and performing calculations with precision.
4. Event-Driven Programming:
Unlock the potential of event-driven programming in Excel VBA. Explore how to trigger macros automatically in response to specific user actions or worksheet events. Enhance interactivity and user experience by leveraging event-driven techniques effectively.
5. Advanced Topics in Excel VBA:
Take your VBA skills to the next level with advanced topics such as error handling, user-defined functions (UDFs), and interacting with external data sources. Dive deep into the intricacies of VBA programming and empower yourself to tackle complex challenges with confidence.
6. Practical Applications and Case Studies:
Gain practical insights into real-world applications of Excel VBA through interactive case studies and examples. Learn how leading organizations leverage VBA to automate reporting, analyze data, and drive informed decision-making.
**7. Integrating VBA with Other Office Applications:**
Explore the seamless integration of VBA across the Microsoft Office suite. Learn how to leverage VBA to automate tasks not only in Excel but also in other Office applications such as Word, PowerPoint, Outlook, and Access. Discover how VBA can streamline workflows by enabling data exchange and manipulation between different Office programs, maximizing efficiency and productivity.
**8. Customizing User Interfaces with VBA Forms:**
Dive into the realm of user interface customization with VBA forms. Explore how to design and create user-friendly interfaces using form controls such as buttons, checkboxes, textboxes, and dropdown lists. Learn how to enhance user experience by incorporating interactive elements and guiding users through complex processes, all within the familiar environment of Excel.
This courseware will introduce you to basics in working with Excel Spreadsheets. It'll serve as a compliment to the in-lab sessions that will be held during the data journalism training session - Voter's Count - in Kumasi
High School level (years 9-10 in Australia, ages 14-16) introduction to programming course, based on the language Processing, includes class material, exercises, examples, and tests. Course ran for 2 terms in 2014. Feel free to use as is, borrow ideas, etc. 3rd class.
Functional programming in Scala. Looking at various examples of defining a program first and executing it at some later stage, separating pure functions from side effects.
Atelier - Innover avec l’IA Générative et les graphes de connaissancesNeo4j
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Allez au-delà du battage médiatique autour de l’IA et découvrez des techniques pratiques pour utiliser l’IA de manière responsable à travers les données de votre organisation. Explorez comment utiliser les graphes de connaissances pour augmenter la précision, la transparence et la capacité d’explication dans les systèmes d’IA générative. Vous partirez avec une expérience pratique combinant les relations entre les données et les LLM pour apporter du contexte spécifique à votre domaine et améliorer votre raisonnement.
Amenez votre ordinateur portable et nous vous guiderons sur la mise en place de votre propre pile d’IA générative, en vous fournissant des exemples pratiques et codés pour démarrer en quelques minutes.
This courseware will introduce you to basics in working with Excel Spreadsheets. It'll serve as a compliment to the in-lab sessions that will be held during the data journalism training session - Voter's Count - in Kumasi
High School level (years 9-10 in Australia, ages 14-16) introduction to programming course, based on the language Processing, includes class material, exercises, examples, and tests. Course ran for 2 terms in 2014. Feel free to use as is, borrow ideas, etc. 3rd class.
Functional programming in Scala. Looking at various examples of defining a program first and executing it at some later stage, separating pure functions from side effects.
Atelier - Innover avec l’IA Générative et les graphes de connaissancesNeo4j
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Allez au-delà du battage médiatique autour de l’IA et découvrez des techniques pratiques pour utiliser l’IA de manière responsable à travers les données de votre organisation. Explorez comment utiliser les graphes de connaissances pour augmenter la précision, la transparence et la capacité d’explication dans les systèmes d’IA générative. Vous partirez avec une expérience pratique combinant les relations entre les données et les LLM pour apporter du contexte spécifique à votre domaine et améliorer votre raisonnement.
Amenez votre ordinateur portable et nous vous guiderons sur la mise en place de votre propre pile d’IA générative, en vous fournissant des exemples pratiques et codés pour démarrer en quelques minutes.
GraphSummit Paris - The art of the possible with Graph TechnologyNeo4j
Sudhir Hasbe, Chief Product Officer, Neo4j
Join us as we explore breakthrough innovations enabled by interconnected data and AI. Discover firsthand how organizations use relationships in data to uncover contextual insights and solve our most pressing challenges – from optimizing supply chains, detecting fraud, and improving customer experiences to accelerating drug discoveries.
Zoom is a comprehensive platform designed to connect individuals and teams efficiently. With its user-friendly interface and powerful features, Zoom has become a go-to solution for virtual communication and collaboration. It offers a range of tools, including virtual meetings, team chat, VoIP phone systems, online whiteboards, and AI companions, to streamline workflows and enhance productivity.
Utilocate offers a comprehensive solution for locate ticket management by automating and streamlining the entire process. By integrating with Geospatial Information Systems (GIS), it provides accurate mapping and visualization of utility locations, enhancing decision-making and reducing the risk of errors. The system's advanced data analytics tools help identify trends, predict potential issues, and optimize resource allocation, making the locate ticket management process smarter and more efficient. Additionally, automated ticket management ensures consistency and reduces human error, while real-time notifications keep all relevant personnel informed and ready to respond promptly.
The system's ability to streamline workflows and automate ticket routing significantly reduces the time taken to process each ticket, making the process faster and more efficient. Mobile access allows field technicians to update ticket information on the go, ensuring that the latest information is always available and accelerating the locate process. Overall, Utilocate not only enhances the efficiency and accuracy of locate ticket management but also improves safety by minimizing the risk of utility damage through precise and timely locates.
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteGoogle
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
👉👉 Click Here To Get More Info 👇👇
https://sumonreview.com/ai-pilot-review/
AI Pilot Review: Key Features
✅Deploy AI expert bots in Any Niche With Just A Click
✅With one keyword, generate complete funnels, websites, landing pages, and more.
✅More than 85 AI features are included in the AI pilot.
✅No setup or configuration; use your voice (like Siri) to do whatever you want.
✅You Can Use AI Pilot To Create your version of AI Pilot And Charge People For It…
✅ZERO Manual Work With AI Pilot. Never write, Design, Or Code Again.
✅ZERO Limits On Features Or Usages
✅Use Our AI-powered Traffic To Get Hundreds Of Customers
✅No Complicated Setup: Get Up And Running In 2 Minutes
✅99.99% Up-Time Guaranteed
✅30 Days Money-Back Guarantee
✅ZERO Upfront Cost
See My Other Reviews Article:
(1) TubeTrivia AI Review: https://sumonreview.com/tubetrivia-ai-review
(2) SocioWave Review: https://sumonreview.com/sociowave-review
(3) AI Partner & Profit Review: https://sumonreview.com/ai-partner-profit-review
(4) AI Ebook Suite Review: https://sumonreview.com/ai-ebook-suite-review
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
The Earth System Grid Federation (ESGF) is a global network of data servers that archives and distributes the planet’s largest collection of Earth system model output for thousands of climate and environmental scientists worldwide. Many of these petabyte-scale data archives are located in proximity to large high-performance computing (HPC) or cloud computing resources, but the primary workflow for data users consists of transferring data, and applying computations on a different system. As a part of the ESGF 2.0 US project (funded by the United States Department of Energy Office of Science), we developed pre-defined data workflows, which can be run on-demand, capable of applying many data reduction and data analysis to the large ESGF data archives, transferring only the resultant analysis (ex. visualizations, smaller data files). In this talk, we will showcase a few of these workflows, highlighting how Globus Flows can be used for petabyte-scale climate analysis.
Understanding Nidhi Software Pricing: A Quick Guide 🌟
Choosing the right software is vital for Nidhi companies to streamline operations. Our latest presentation covers Nidhi software pricing, key factors, costs, and negotiation tips.
📊 What You’ll Learn:
Key factors influencing Nidhi software price
Understanding the true cost beyond the initial price
Tips for negotiating the best deal
Affordable and customizable pricing options with Vector Nidhi Software
🔗 Learn more at: www.vectornidhisoftware.com/software-for-nidhi-company/
#NidhiSoftwarePrice #NidhiSoftware #VectorNidhi
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppGoogle
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
👉👉 Click Here To Get More Info 👇👇
https://sumonreview.com/ai-fusion-buddy-review
AI Fusion Buddy Review: Key Features
✅Create Stunning AI App Suite Fully Powered By Google's Latest AI technology, Gemini
✅Use Gemini to Build high-converting Converting Sales Video Scripts, ad copies, Trending Articles, blogs, etc.100% unique!
✅Create Ultra-HD graphics with a single keyword or phrase that commands 10x eyeballs!
✅Fully automated AI articles bulk generation!
✅Auto-post or schedule stunning AI content across all your accounts at once—WordPress, Facebook, LinkedIn, Blogger, and more.
✅With one keyword or URL, generate complete websites, landing pages, and more…
✅Automatically create & sell AI content, graphics, websites, landing pages, & all that gets you paid non-stop 24*7.
✅Pre-built High-Converting 100+ website Templates and 2000+ graphic templates logos, banners, and thumbnail images in Trending Niches.
✅Say goodbye to wasting time logging into multiple Chat GPT & AI Apps once & for all!
✅Save over $5000 per year and kick out dependency on third parties completely!
✅Brand New App: Not available anywhere else!
✅ Beginner-friendly!
✅ZERO upfront cost or any extra expenses
✅Risk-Free: 30-Day Money-Back Guarantee!
✅Commercial License included!
See My Other Reviews Article:
(1) AI Genie Review: https://sumonreview.com/ai-genie-review
(2) SocioWave Review: https://sumonreview.com/sociowave-review
(3) AI Partner & Profit Review: https://sumonreview.com/ai-partner-profit-review
(4) AI Ebook Suite Review: https://sumonreview.com/ai-ebook-suite-review
#AIFusionBuddyReview,
#AIFusionBuddyFeatures,
#AIFusionBuddyPricing,
#AIFusionBuddyProsandCons,
#AIFusionBuddyTutorial,
#AIFusionBuddyUserExperience
#AIFusionBuddyforBeginners,
#AIFusionBuddyBenefits,
#AIFusionBuddyComparison,
#AIFusionBuddyInstallation,
#AIFusionBuddyRefundPolicy,
#AIFusionBuddyDemo,
#AIFusionBuddyMaintenanceFees,
#AIFusionBuddyNewbieFriendly,
#WhatIsAIFusionBuddy?,
#HowDoesAIFusionBuddyWorks
Navigating the Metaverse: A Journey into Virtual Evolution"Donna Lenk
Join us for an exploration of the Metaverse's evolution, where innovation meets imagination. Discover new dimensions of virtual events, engage with thought-provoking discussions, and witness the transformative power of digital realms."
E-commerce Application Development Company.pdfHornet Dynamics
Your business can reach new heights with our assistance as we design solutions that are specifically appropriate for your goals and vision. Our eCommerce application solutions can digitally coordinate all retail operations processes to meet the demands of the marketplace while maintaining business continuity.
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Łukasz Chruściel
No one wants their application to drag like a car stuck in the slow lane! Yet it’s all too common to encounter bumpy, pothole-filled solutions that slow the speed of any application. Symfony apps are not an exception.
In this talk, I will take you for a spin around the performance racetrack. We’ll explore common pitfalls - those hidden potholes on your application that can cause unexpected slowdowns. Learn how to spot these performance bumps early, and more importantly, how to navigate around them to keep your application running at top speed.
We will focus in particular on tuning your engine at the application level, making the right adjustments to ensure that your system responds like a well-oiled, high-performance race car.
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
As part of the DOE Integrated Research Infrastructure (IRI) program, NERSC at Lawrence Berkeley National Lab and ALCF at Argonne National Lab are working closely with General Atomics on accelerating the computing requirements of the DIII-D experiment. As part of the work the team is investigating ways to speedup the time to solution for many different parts of the DIII-D workflow including how they run jobs on HPC systems. One of these routes is looking at Globus Compute as a way to replace the current method for managing tasks and we describe a brief proof of concept showing how Globus Compute could help to schedule jobs and be a tool to connect compute at different facilities.
Check out the webinar slides to learn more about how XfilesPro transforms Salesforce document management by leveraging its world-class applications. For more details, please connect with sales@xfilespro.com
If you want to watch the on-demand webinar, please click here: https://www.xfilespro.com/webinars/salesforce-document-management-2-0-smarter-faster-better/
Software Engineering, Software Consulting, Tech Lead, Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Transaction, Spring MVC, OpenShift Cloud Platform, Kafka, REST, SOAP, LLD & HLD.
1. Excel Macro VBA Quick Reference
Guide
Website: http://everydayvba.com
Facebook: everydayvba
YouTube: everydayvba
Color Coding in the Coding Window
Black=Regular Code Blue=Keywords Green=Comments Red=Errors
‘ (single quote) to leave a comment in the code
Quick Keys
Alt + F11 Open Visual Basic Editor F5 Run Code
F8 Step into (one line at a time) F9 Add a Break point
F2 Object browser F4 Properties Window
Shift + F8 Step Over Ctrl + Break Break Loop
Ctrl + J List Property Methods Alt + G Immediate Window
Operators – Mathematical and Logical
Numbers: + (plus) – (minus) * (times) / (divide) ^ (exponent)
Strings: & (string concatenate)
Comparisons: = (equals) < (less than) <= (less than or equal) > (greater
than) >= (greater than or equal)
Conditional Statement: Something that is True or False
Boolean (for conditional statements): AND, OR, NOT
Procedure and Functions (the Start and end of a Macro Procedure)
Procedure Types: Public: Visible to ALL modules (this is the default
procedure type), Private: Visible to this Module Only
Syntax [procedure type]
Sub [Procedure Name] ([Optional])
[Code or statements]
End Sub
Function [Function Name]([variable1],[variable2])
[Code or statements]
End Function
Data Types/Declaring Variables
Declaring Variable Syntax: Dim [variable name] As [variable type]
Declaration Types: Dim = Procedural variable, Static = Procedure variable
that retains value, and Public = Globally used variable
Variable Types: Integer (whole numbers), Long (Larger Whole Numbers),
Double (numbers with decimals), Boolean (True or False), String (Text),
Variant (Default Variable Excel chooses the data Type), Date (Date)
Object Types: Workbook, Worksheet, Range
Math/Financial/Formatting Functions
Math - Abs(num), Exp(num), Int(num), Rnd(num), Randomize,
Round(num,digits), Sqr(num)
Financial - FV(rate, nper, pmt[, pv[, type]]), NPV(rate, values()), PV(rate,
nper, pmt[, fv[, type]]), Pmt(rate, nper, pv[, fv[, type]]), PPmt(rate, per,
nper, pv[, fv[, type]])
Format - Format(“number, string, or date”, “format” )
Number Format Format(“num”, “Pos Num”:”Neg Num”:”Zero”)
0 – Leading Digit # – No Leading or Trailing Zero
e+ or e- – Exponential % – Percentages
Numbers have three formatting Options Positive, Negative, and Zero
String Format
@ – Character or Space & – Character or Nothing
! – Cut from the left
Date Format
d, m, y, h, n, s – Day Month, Year, Hours, Min, Sec w/o leading 0 “5”
dd, mm, yy, hh, nn, ss – – Day Month, Year, Hours, Min, Sec “05”
ddd, mmm – Day “Sun”, Month “Jun”
dddd , mmmm– Day “Sunday”, Month “June”
ww – Week Number
y – Day of Year yy – 2 Digit Year “16” yyyy – 4 digit Year “2016”
AM/PM or am/pm – Show AM/am PM/pm 12 hour clock
Date Time Functions – (Class = Date Time)
In Excel and Most Programing Languages one date is equal to 1 and today
is the number of days since 1/1/1900. Where fractions of 1 represent
minutes and seconds.
Now() - Current date and time Date() - Current date
Time() - Current time Timer() - Sec since midnight
Date = Var - Sets current date Time = Var - Sets current time
Day(#11/05/2016#) = 5 Month(#11/05/2016#) = 11
Year(#11/05/2016#) = 2016 Weekday(#11/05/2016#) = 7
Hour(.5) = 12 Minute(.501) = 1
Second(.501) = 26
DateSerial(2020, 11, 05) = #11/05/2020#
TimeSerial(8, 0, 0) = 0.25 or 8:00:00
String Functions
Syntax: [variable] = Left(“This is a string”,4) | [variable] = “This”
Strip characters from a string: Left(string, length), Right(string, length),
Mid(start, string, [length]) – used for the finding the middle of a string
Change String Case: Ucase(string) – Makes string uppercase.
LCase(string) – Makes string lowercase
Find the length of the sting or number of characters: Len(String)
Get rid of spaces: LTrim(String) – Remove spaces on the Left,
Rtrim(String) – Remove spaces on Right
Trim(String) – Remove spaces on left and right of string
Turn a String into a Value: Value(string)
Single Characters: Char(65) = “A” – Uses the Ascii characters
Find a string within another string: Instr([start],[string
searching],[searching for], [Optional Compare Method])
Split a string based on a delimiter (returns data in array): Split([string],
[delimiter], [Optional Limit],[Optional Compare])
Conditional Statements
Conditionally executes a statements, depending on the value of the
condition. If it is true the group of statements will be processed
If [condition 1] Then Select Case [Variable]
[statements] Case [condition]
ElseIf [condition 2] Then [statements]
[statements] Case [condition 2]
Else [statements]
[statements] Case Else
End If [statements]
End Select
Message Box Input Box
MsgBox(“Prompt”, [button types]+[icons (optional)], “Title”, [helpfile],
[context])
Button Types (Constant Integer)
vbOKOnly(0) vbOKCancel (1) vbAbortRetryIgnore(2)
vbYesNoCancel (3) vbYesNo (4) vbRetryCancel (5)
Icons
vbCritical (16) vbQuestion (32) vbExclamation (48)
vbInformation (64)
Button Constants (Constant Integer)
vbOK (1) vbCancel (2) vbAbort(3)
vbRetry (4) vbIgnore (5) vbYes (6)
vbNo (7)
InputBox(prompt[, title] [, default] [, xpos] [, ypos] [, helpfile, context])
Ibox = InputBox(“Message”,” Title”)
Ibox = User response from the Input box as a String Variable
NOTE: if “Cancel” is clicked ibox will be “” or [blank]
Appplication Inputbox has some advantages specifically allows the user
to select the preferred data type
Ibox = Application.InputBox(Prompt, Title, Default, Left, Top, HelpFile,
HelpContextID, Type)
Input Types
0 - A formula 1 - A number
2 - Text (a string) 4 - A logical value (True or False)
8 - A cell reference, as a Range object
16 - An error value, such as #N/A
64 - An array of values
“I am always doing that which I cannot do, in order
that I may learn how to do it.”
― Pablo Picasso
2. Iterations or Loops
Loops repeat a block of statements while its conditions are true, a
specified number of times is completed, or through each element of a
collection (like each sheet in all the sheets in a workbook)
Do While will repeat until the condition is False
Do Until will repeat until the condition is True
Do While [Condition is True] Do Until [Condition is False]
[statements] [statements]
Exit Do [optional] Exit Do [optional]
[statements] [statements]
Loop Loop
For x = 100 to 1 Step -1 x is reduced by one until it reaches 1
For Each ws in Worksheets will go through all the sheets every loop ws
will be assigned a new sheet
For [counter] = [start] to [end] For Each [element] in [group]
[statements] [statements]
Exit For [optional] Exit For [optional]
[statements] [statements]
Next Next
Range and Cell - Properties
AddIndent Height Rows
Address Hidden Text
AllowEdit Hyperlinks Validation
Borders IndentLevel Value
Cells Interior VerticalAlignment
Characters Item Width
Column Locked Worksheet
Columns MergeArea WrapText
ColumnWidth MergeCells Resize
Comment Name Row
Count NumberFormat RowHeight
CurrentRegion Offset Rows
End Orientation Text
EntireColumn OutlineLevel UseStandardHeight
EntireRow PageBreak UseStandardWidth
Font Parent Validation
Formula Resize Value
FormulaR1C1 Row VerticalAlignment
HasFormula RowHeight Width
Range and Cell - Methods
Activate ClearHyperlinks Justify
AdvancedFilter Copy Merge
AddComment Cut PasteSpecial
ApplyNames Delete PrintOut
AutoFill FillDown PrintPreview
AutoFilter FillLeft RemoveDuplicates
AutoFit FillRight RemoveSubtotal
BorderAround FillUp Replace
Calculate Find Select
Clear FindNext Sort
ClearComments FindPrevious Subtotal
ClearContents Insert TextToColumns
ClearFormats InsertIndent UnMerge
Worksheet - Properties
AutoFilter EnableAutoFilter Rows
Cells Hyperlinks Shapes
CircularReference Name Sort
Columns Names StandardHeight
Comments PageSetup StandardWidth
Count Parent Visible
DisplayPageBreaks Range
Worksheet – Methods (Class = Sheet1)
Activate Paste Protect
Add PasteSpecial ResetAllPageBreaks
Calculate PivotTableWizard SaveAs
Copy PrintOut Select
Delete PrintPreview Unprotect
Move
Worksheet - Events
Activate BeforeRightClick Change
BeforeDoubleClick Calculate
Workbooks – Properties (Class = ThisWorkbook)
ActiveChart HasPassword Sheets
ActiveSheet Name ThisWorkbook
Charts Names User
FileFormat Path Worksheets
FullName ReadOnly
Workbooks – Methods
Activate PrintPreview SaveAs
Close Protect Unprotect
PrintOut Save
Workbooks – Events
Activate NewChart SheetChange
AfterSave NewSheet WindowActivate
BeforeClose Open WindowDeactivate
BeforePrint SheetCalculate WindowResize
BeforeSave
Forms
Start or Initialize form: Load [form name]
Display a User Form or make is visible: [form name].Show
Hide the Form or make invisible: [form name].Hide
Close or quit form: Unload [form me]
Unload a Form from within the Userform Private Subs: Unload Me
Form Controls
Label Text Box Combo Box
List Box Check Box Radio Button
Toggle Button Frame Button
Multi Page Scroll Bar Spin Button
Image RefEdit
Form Events
Syntax Private Sub [object name]_[event]() End Sub
The First Code that runs when Load or .Show is executed
Private Sub UserForm_Initialize()
[statements]
End Sub
Activate Change Click
DblClick Enter Exit
Key Down KeyPress KeyUp
MouseDown MouseMove MouseUp
Deactivate Initialize GotFocus
Load Scroll Terminate
Arrays
An array is a group of variables and you can refer to a specific variable
(element) of an array by using the array name and the index number
Declaring An Array: Dim ArrayName(Start to End) or Static Array
Dim ArrayName() Dynamic Array
Example: Dim Oarray(1 to 3)
Assigning Data to the Array using Index | Assigning Array(index) to
Variable (See Below)
Oarray(1) = “This” x = Oarray(1) x = “This”
Oarray(2) = “Is” x = Oarray(2) x = “Is”
Oarray(3) = “An Array” x = Oarray(3) x = “An Array”
Redim Oarray(1 to 10) If an array size is going to change Redim must be
used - This will delete all the data from the array
Redim Preserve Oarray(1 to 15) – Preserve will keep the data in the array
AND resize the array
Ubound and Lbound
Ubound(Oarray) = 15 Returns the highest available subscript for the
indicated dimension of an array
Lbound(Oarray) = 1 Returns the lowest available subscript for the
indicated dimension of an array
Multi-Dimensional Array
LBound(Oarray) first index
LBound(Oarray, 2 ) Lower bound for second index for a two dimensional
array
UBound(Oarray) Upper bound for first index
UBound(Oarray, 3) Upper bound for third index
Erase Oarray Empties the Array’s data
From Range to an Array (NOTE: It will be a two dimensional Array)
Dim Oarray as Variant
Oarray = Range(“A1:C10”) Creates and Array Oarray(1 to 10, 1 to 3)
Oarray = Range(“A1”).CurrentRegion This is a powerful
From an Array to a Range (This is like pasting the array to the range)
Range(“A1:C10”) = Oarray This is also powerful. Keep in mind the array
will need to be two dimensional Oarray(1 to 10, 1 to 3)
Split Function Break out a string into a an Array
Split(text_string, delimiter, [limit], [compare])
Oarray = Split(“This is Text”, “ “)
Creates Oarray(0 to 2) with the data below
Oarray(0) = “This” Oarray(1) = “is” Oarray(2) = “Text”
“First, solve the problem. Then, write the code.”
― John Johnson