This document outlines the process of creating macros using VBA in Excel. It begins with an introduction to object-oriented programming and how VBA is an OOP language that allows manipulating Excel objects. It then demonstrates recording a simple macro to shift data in a row and modifying the macro to work on any given row by adding an input argument. Loops and functions are introduced to check each row and shift data where needed. The document provides a step-by-step explanation of coding concepts like subroutines, variables, data types, conditional statements, and functions.
This slide begins your formal investigation of the C# programming language by presenting a number
of bite-sized, stand-alone topics you must be comfortable with as you explore the .NET Framework.
This slide begins your formal investigation of the C# programming language by presenting a number
of bite-sized, stand-alone topics you must be comfortable with as you explore the .NET Framework.
A macro is a series of functions written in a programming language that is grouped in a single command to perform the requested task automatically. Excel macros are used to save time and reduce the possibility of human error by automating repetitive processes.
Online Advance Excel & VBA Training in Indiaibinstitute0
In today’s era, Investment banking courses are considered as the best path to make bright future. These courses includes financial modeling training, basic & advance excel training, excel dashboard 2010 course, financial modeling & company valuation training, relative valuation etc. Investment banking Institute (IBI) in Delhi provides such types of training of best level in weekend classes. IB Institute provides Online & corporate financial modeling & company valuation training in Delhi, India.
Learn VBA Training & Advance Excel Courses in Delhiibinstitute0
Investment Banking Institute (IBI) is the one of the most accepted & highly reputed institute of investment banking education which offers both online and corporate training of basic & advance excel 2010, financial modeling & company valuation, VBA training. Weekend classes of financial modeling & advance excel training in Delhi are provided by this reputed corporate banking institute to professionals & students at an outstanding level.
PVS-Studio team is about to produce a technical breakthrough, but for now let...PVS-Studio
Static analysis is most useful when it is done on a regular basis. Especially when the project is rapidly developing, like the Blender project, for example. Now it's time to check it once more, and see what suspicious fragments we'll find this time.
During this session, we introduce some of the most basic and important data classes of MATLAB: the numeric array and the cell array. We will handle the change of a string into a number, in relation to user input. We will do a small introduction to the assert() function, which we can use to check if a program is working as intended. Further, we will have a quick look at basic control flow - for-loop.
TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is pure object oriented with classes, interfaces and statically typed like C# or Java. The popular JavaScript framework Angular 2.0 is written in TypeScript. Mastering TypeScript can help programmers to write object-oriented programs and have them compiled to JavaScript, both on server side and client side.
JavaScript is scripting/programming language. File Extension of JavaScript is ".js”. This extension can be catched by a number of applications including Windows Script Host, Dreamweaver MX, Notepad, Netscape Navigator, PavScrip, UltraEdit.
A macro is a series of functions written in a programming language that is grouped in a single command to perform the requested task automatically. Excel macros are used to save time and reduce the possibility of human error by automating repetitive processes.
Online Advance Excel & VBA Training in Indiaibinstitute0
In today’s era, Investment banking courses are considered as the best path to make bright future. These courses includes financial modeling training, basic & advance excel training, excel dashboard 2010 course, financial modeling & company valuation training, relative valuation etc. Investment banking Institute (IBI) in Delhi provides such types of training of best level in weekend classes. IB Institute provides Online & corporate financial modeling & company valuation training in Delhi, India.
Learn VBA Training & Advance Excel Courses in Delhiibinstitute0
Investment Banking Institute (IBI) is the one of the most accepted & highly reputed institute of investment banking education which offers both online and corporate training of basic & advance excel 2010, financial modeling & company valuation, VBA training. Weekend classes of financial modeling & advance excel training in Delhi are provided by this reputed corporate banking institute to professionals & students at an outstanding level.
PVS-Studio team is about to produce a technical breakthrough, but for now let...PVS-Studio
Static analysis is most useful when it is done on a regular basis. Especially when the project is rapidly developing, like the Blender project, for example. Now it's time to check it once more, and see what suspicious fragments we'll find this time.
During this session, we introduce some of the most basic and important data classes of MATLAB: the numeric array and the cell array. We will handle the change of a string into a number, in relation to user input. We will do a small introduction to the assert() function, which we can use to check if a program is working as intended. Further, we will have a quick look at basic control flow - for-loop.
TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is pure object oriented with classes, interfaces and statically typed like C# or Java. The popular JavaScript framework Angular 2.0 is written in TypeScript. Mastering TypeScript can help programmers to write object-oriented programs and have them compiled to JavaScript, both on server side and client side.
JavaScript is scripting/programming language. File Extension of JavaScript is ".js”. This extension can be catched by a number of applications including Windows Script Host, Dreamweaver MX, Notepad, Netscape Navigator, PavScrip, UltraEdit.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
Vaccine management system project report documentation..pdfKamal Acharya
The Division of Vaccine and Immunization is facing increasing difficulty monitoring vaccines and other commodities distribution once they have been distributed from the national stores. With the introduction of new vaccines, more challenges have been anticipated with this additions posing serious threat to the already over strained vaccine supply chain system in Kenya.
Immunizing Image Classifiers Against Localized Adversary Attacksgerogepatton
This paper addresses the vulnerability of deep learning models, particularly convolutional neural networks
(CNN)s, to adversarial attacks and presents a proactive training technique designed to counter them. We
introduce a novel volumization algorithm, which transforms 2D images into 3D volumetric representations.
When combined with 3D convolution and deep curriculum learning optimization (CLO), itsignificantly improves
the immunity of models against localized universal attacks by up to 40%. We evaluate our proposed approach
using contemporary CNN architectures and the modified Canadian Institute for Advanced Research (CIFAR-10
and CIFAR-100) and ImageNet Large Scale Visual Recognition Challenge (ILSVRC12) datasets, showcasing
accuracy improvements over previous techniques. The results indicate that the combination of the volumetric
input and curriculum learning holds significant promise for mitigating adversarial attacks without necessitating
adversary training.
About
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
Technical Specifications
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
Key Features
Indigenized remote control interface card suitable for MAFI system CCR equipment. Compatible for IDM8000 CCR. Backplane mounted serial and TCP/Ethernet communication module for CCR remote access. IDM 8000 CCR remote control on serial and TCP protocol.
• Remote control: Parallel or serial interface
• Compatible with MAFI CCR system
• Copatiable with IDM8000 CCR
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
Application
• Remote control: Parallel or serial interface.
• Compatible with MAFI CCR system.
• Compatible with IDM8000 CCR.
• Compatible with Backplane mount serial communication.
• Compatible with commercial and Defence aviation CCR system.
• Remote control system for accessing CCR and allied system over serial or TCP.
• Indigenized local Support/presence in India.
• Easy in configuration using DIP switches.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
4. What is O-O programming?
A programming style that uses “objects” to comprise
programs.
Objects:
In a pure O-O language, every thing in the program is an
object.
An object is a data structure consisting of attributes (data
fields) and methods (actions).
The attributes of the object hold its current information
The methods of the object determine what the object can do
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
4
5. Different objects types: classes
Each programming environment comes with many different kinds of
predefined objects.
An object type is called a class. A class is thus some type of object.
All objects within a class hold the same kind of information (identical
attributes) and can perform the same actions (identical methods).
A class is the “cookie cutter”/template you use to create new object
instances.
Hollywood analogy: in Battlestar
Galactica there are 12 “classes”
of human robots. One of these 12
model types was the Sharon
model.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
5
6. Creating and using objects
You 1st need a class
class Sharon
Attributes: height, 3Dbodyshape, faceimage, currentlocation, currentlove,
pastexperienceslog
Methods: imitateHuman, fallInLove(person), doSecretMission(password)
You then “declare” a new object and can subsequently assign its attribute
value and invoke its methods.
Example: declaring a new Sharon object, assigning a value, and calling a
method
Sharon sharonNo55
sharonNo55.currentlocation = “KA.493.X7.1034”
sharonNo55.fallInLove(Helo)
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
6
7. Object Oriented Programming Fundamentals
Appropriate object classes (their attributes and
methods) heavily depend on the problem you are
working on.
Example: A system for a bank:
◦ Objects: Customers, Accounts, etc.
◦ Attributes: First Name, Last Name, SSN, Address, etc.
◦ Methods: Withdraw, Open an account, Deposit, Cash check, etc.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
7
8. VBA: Visual Basic for Applications
VBA is a specialized version of Microsoft’s well-known Visual Basic
language.
VBA is an Object-Oriented language within Microsoft Office suite:
◦ Excel, Word, Access, and Power Point.
◦ We will focus on Excel.
◦ Shortcut to access the VBA interface in Excel: Alt+F11.
Excel treats everything in a spreadsheet as objets. So, VBA lets us play
with all these objects.
◦ Object that we are interested in: Workbooks, worksheets, cells, rows, ranges.
◦ There are over 200 different class (types of objects) in Excel.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
8
9. Coding with VBA
There are two approaches to write a code in VBA:
• Standard Coding
• Macro Recording
The Macro approach “records” a series of mouse-clicks and keyboard
strokes.
• Advantage: Corresponding VBA code is created automatically
and recorded for you.
• Disadvantage: It’s limited.
To tackle this limitation, we use a mixed approach:
• First, record a simple macro.
• Then, tweak it to achieve more complex tasks.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
9
10. Problem Definition
We have data spanning 3 columns and 13 rows (C6:F18).
◦ Data should be stored in the given range in order to use it for other application.
◦ Unfortunately, there are some errors in the data entry process, so some of the rows are shifted
to the right by one column.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
10
11. Declare and name variables.
Create Subroutines and Functions (We’ll learn what they are shortly).
Use conditional statements.
Create repetitions.
Problem Definition
We have data spanning 3 columns and 13 rows (C6:F18).
◦ Data should be stored in the given range in order to use it for
other application.
◦ Unfortunately, there are some errors in the data entry process,
so some of the rows are shifted
to the right by one column.
Our job is to correct all these mistakes:
◦ First, record a simple macro that correct a specific row (say
Row 8).
◦ Then, tweak it to make correction in any given row.
◦ Finally, we let the code check any mistake and correct it.
While doing this, we learn how to
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
11
12. Our First Macro
Download and open VBA_Example_class.xlsm
In Excel 2010, we should save the file as a Macro Enabled
Workbook (i.e., in the .xlsm format).
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
12
13. Our First Macro
◦
◦
◦
◦
Select the range D8:F8.
Cut the selected cells.
Select cell C8.
Paste the cut cells.
To see the VBA code generated by your actions, go into VBA (Alt+F11) and
then near the upper left of the window expand the Modules folder and
double-click on Module1.
Find the Macros option under the Excel 2010 View tab to record a VBA macro.
Let’s call our Macro “Shifter.” We want our macro to do the following:
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
13
14. Subroutines
Notice that the code starts with Sub command and ends with End Sub command.
Sub refers to the Subroutines.
◦ Subroutine: A portion of code within a larger program that performs a specific task and is
relatively independent of the remaining code.
◦ We can use a subroutine in a different subroutine by “calling” it.
◦ e.g., Call Shifter().
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
14
15. Execution of Subroutines
Each line of a subroutine is executed sequentially.
Let’s see how our macro is executed.
(The first three green lines following each ‘ are simply comments/documentation.)
• The real first line is Range("D8:F8").Select, and it selects the cells we want to select.
• The second line, Selection.Cut, cuts the selected cells.
• The third line, Range("C8").Select, selects the cell C8.
• Finally, the last line, ActiveSheet.Paste, pastes the cut values to the selected cell of the worksheet.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
15
16. Subroutines with Input Arguments
The limitation of Shifter is that it only corrects Row 8.
We can solve this by creating a subroutine which will take a row number as an input
parameter.
Sub ShiftOneColumn (RowNum As Integer)
CODE BLOCK
End Sub
◦ RowNum is the input variable. We name it.
◦ As Integer part declares the data type of our input variable.
◦ Common Data Types:
Data Type
Boolean
Integer
Double
String
Description
Holds either TRUE or FALSE value.
Integers between -32000 and 32000
Double precision numbers, can hold fractional numbers (The
range of double number is very large)
A set of characters (like sentences)
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
16
17. Shifting Any Given Column
Sub ShiftOneColumn (RowNum As Integer)
Range("D" & RowNum & ":F" & RowNum).Select
Selection.Cut
Range("C" & RowNum).Select
ActiveSheet.Paste
End Sub
How do we tell VBA to shift the row according to our input, RowNum?
◦ Currently, we select cells D8,E8,F8 by writing "D8:F8".
◦ We will construct that D#:F# syntax, for our row # (i.e., RowNum)
Range("D" & RowNum & ":F" & RowNum).Select
◦ In Excel and VBA the & operator simply combines (“concatenates”) text together
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
17
18. Shifting Repeatedly
We now have a subroutine that can correct any given row.
We want to apply this subroutine to any rows between 6 and 18.
We use a loop (e.g., a FOR-NEXT Loop) for this task:
For-Next Loop Syntax
For varName=start_val To end_val Step step_size
CODE BLOCK
Next varName
◦ The above code assigns the value of variable varName to start_val.
◦ Then, executes the code inside the loop.
◦ After that, increases the value of variable varName by step_size
◦ And, runs the code again.
◦ Repeats that until the value of variable varName reaches end_val.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
18
19. Shifting Repeatedly
Sub ShifterLoop
For RowNum=6 To 18 Step 1
Call ShiftOneColumn(RowNum)
Next RowNum
End Sub
Let’s create our FOR-NEXT Loop.
◦ The variable whose value we change is RowNum.
◦ The Start value is 6. The End value is 18.
◦ And, the Step Size is 1.
In each step, we call the subroutine ShiftOneColumn.
Notice that we have started to use the value called RowNum that we introduced….
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
19
20. Variable Declaration
The subroutine ShiftOneColumn requires an integer input.
We decided to introduce something called RowNum which stores
a row number.
◦ We want the data type for RowNum to be Integer. The VBA interpreter will attempt to
guess (scary!) the data type if you forget to declare your variables.
To avoid that problem, we need to define the variables we use properly:
Variable Declaration in VBA
Dim varName As dataType
Some rules about variable declaration:
◦ Variables names have to start with a letter, and have no spaces.
◦ VBA is not case sensitive (RowNum and rownum are the same).
◦ Names that are more than one word are usually written with the first letter of words
capitalized; it’s not required but it’s fairly standard practice).
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
20
21. Shifting Repeatedly
So, we add a line before the loop where we declare our variable
RowNum.
Sub ShifterLoop
Dim RowNum As Integer
For RowNum=6 To 18 Step 1
Call ShiftOneColumn(RowNum)
Next RowNum
End Sub
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
21
22. Checking If First Column is Empty
We need to check whether the first column of a row is empty or not.
VBA’s conditional statement IF-THEN-ELSE allows us to achieve this
goal.
IF-THEN-ELSE Syntax
If test_cond Then
...
CODE BLOCK executed if test_cond holds
...
Else
...
CODE BLOCK executed if test_cond fails
...
End If
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
22
23. A Function to Check the First Column
We could write our conditional statement to check the first column
within the subroutine, but we will define a separate “Function” for
the checking task.
Functions are very similar to the subroutines. Then, why a function?
◦ Unlike a subroutine, but Functions return a value.
◦ Useful for reporting the result of a calculation or other results.
◦ Our function will return…
1 if the first column is empty
0 otherwise.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
23
24. More on Functions vs. Subroutines
Functions are not always the right choice:
◦ A function cannot directly write data back to the spreadsheet.
◦ We can write data to the spreadsheet via subroutines. Easiest way:
How to write data to cells
Cells(row_num,col_num).Value= x
◦ e.g., Cells(10,3).Value= "Ducks Rock" writes Ducks Rock to the cell
C10. (Try it!)
◦ In this example, our function doesn’t need to change the value of cell,
but our function does return a value.
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
24
25. A Function to Check the First Column
Let’s go back to our task: Creating a function to check the first column.
We name our function as CheckColOne.
What is our input argument? Row Number.
Function to check the first column
Function CheckColOne (RowNum as Integer)
If Cells(RowNum,3).Value="" Then
CheckColOne=1
Else
CheckColOne=0
End If
End Function
How do we check if the first column is empty?
◦
◦
◦
◦
We can use Cells(row_num,col_num).Value. Then, check whether it is empty.
We know the row number: It’s our input argument, RowNum.
The column number is 3 since the first column of data is in Column C.
So, our test condition is if Cells(RowNum,3).Value="".
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
25
26. Using the Check Function in the Main Subroutine
Sub ShifterLoop ()
Dim RowNum As Integer
For RowNum=6 To 18 Step 1
If CheckColOne(RowNum) Then
Call ShiftOneColumn(RowNum)
End If
Next RowNum
End Sub
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
26
27. Practice: Extending our program
How would we extend our program if we wanted to have the
program highlight each moved row with a yellow background?
Remember the approach most business people using VBA
take:
Perform “Macro Recording” to start
Use/modify the resulting code
5/29/2020
Javier Cauna Morales
UAGRM-IngPetrolera
27