SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
MACROS excel
Most users have come across the word MACRO, one time or
another using Excel. A macro is a recording of sorts, that stores
your actions, step by step. Macros are used to eliminate the need
to repeat the steps of common tasks over and over. Tasks such as
adding or removing rows and columns, selecting a range of cells,
or changing textcolor, fonts etc. In Excel, macros are written in
Visual Basic for Applications (VBA). For those who cannot write
VBA code, Excel allows you to record a series of steps – using
keyboard and mouse – that Excel then converts into a macro.
MACROS excel
Open a blank Excel Document
and click on the VIEW-Ribbon.
All the way to the right is the
Macro Button. Click on the little
black arrow underneath the
Macro Icon, and choose: “Use
Relative References”.
Click the little black arrow
(under the macro icon) again.
This time, choose “Record
Macro”. Call it “First”, Click
OK.
Now, Click on a Cell and type.
Select a sample of cells around
the text you wrote.
Click on the HOME-Ribbon,
and set text color and
background color.
Click the little black arrow
underneath the macro icon,
once more, choose “Stop
Recording”.
Highlight a new cell.
Click on the Macro Icon, showing a list of available macros and
Click RUN.
What you see is that Excel now replicates our steps, on a new set
of cells. Choose a different Cell, and try it again to see that it
works.
To see what the code looks like, click the Macro
Icon again, choose the macro and click EDIT.
This will open the VBA editor and show your
macro:
Sub First()
'
' First Macro
''
ActiveCell.FormulaR1C1 = "This is my first Macro
Recording"
ActiveCell.Select
Selection.Font.Bold = True
With Selection.Font
.Color = -16776961
.TintAndShade = 0
End With
ActiveCell.Range("A1:D3").Select
With Selection.Interior
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
MACROS excel

More Related Content

PDF
Getting started with Microsoft Excel Macros
PPTX
A Quick Simple MS Excel Macro
PPTX
Learn Excel Macro
PDF
Excel VBA programming basics
PPT
VBA - Macro For Ms.Excel
PPT
Using macros in microsoft excel part 1
PPTX
Microsoft Excel Basics
PPTX
Excel macro
Getting started with Microsoft Excel Macros
A Quick Simple MS Excel Macro
Learn Excel Macro
Excel VBA programming basics
VBA - Macro For Ms.Excel
Using macros in microsoft excel part 1
Microsoft Excel Basics
Excel macro

What's hot (20)

PPTX
Vba part 1
PPTX
Microsoft Excel - Macros
PPTX
Introduction to Excel VBA/Macros
PPTX
Vba introduction
PPTX
Basic Ms excel
PPTX
E learning excel vba programming lesson 3
PPTX
Ms Excel Basic to Advance Tutorial
PPT
Microsoft Office 2003 Creating Macros
PPTX
PPTX
Excel-VBA
PPTX
VLOOKUP HLOOKUP INDEX MATCH
PPTX
An introduction to vba and macros
PDF
Excel Macro Magic
PPT
PPTX
03 Excel formulas and functions
PPTX
Excel lesson01
PPTX
Intro to Excel Basics: Part I
PPT
Ms excel basic about Data, graph and pivot table
PPT
Microsoft excel
Vba part 1
Microsoft Excel - Macros
Introduction to Excel VBA/Macros
Vba introduction
Basic Ms excel
E learning excel vba programming lesson 3
Ms Excel Basic to Advance Tutorial
Microsoft Office 2003 Creating Macros
Excel-VBA
VLOOKUP HLOOKUP INDEX MATCH
An introduction to vba and macros
Excel Macro Magic
03 Excel formulas and functions
Excel lesson01
Intro to Excel Basics: Part I
Ms excel basic about Data, graph and pivot table
Microsoft excel
Ad

Viewers also liked (20)

PDF
Melcrum Keynote Presentation
PPT
Hinduism
DOCX
Penstock
PPTX
Moving Beyond Streets for Cars - Madeline Brozen - UCLA - Lee Schipper Memori...
PDF
Low Carbon Housing for Non-experts
PPT
GYAN 2004 Presentation
PDF
GYAN and the UN MDGs
PDF
Tony Twyman award paper 2012 ’Video across platforms’ - asi 2012 TV Sy…
PDF
PDF
CD September 204 - 360 Bam Nuttall
PDF
The Future of Employee Research Report
PDF
Bus Rapid Transit (BRT) and urban development in Latin America and India - By...
PPTX
2011 Clarington Energy Summit - OPG Refurbishment Presentation by Dietmar Reiner
PPTX
Bus Karo: Bus Depot Design Guideline (Session VII)
PDF
Székely nemzeti anarchizmus - Erdélyi pártosztódások az infantilizmus szintjén
PPTX
Examining the Relationship between Bus Rapid Transit (BRT) and the Built Envi...
PDF
Excell 2012 USP\'s
PPTX
Contract presentation
PDF
International marketing research
PPT
Ms excell
Melcrum Keynote Presentation
Hinduism
Penstock
Moving Beyond Streets for Cars - Madeline Brozen - UCLA - Lee Schipper Memori...
Low Carbon Housing for Non-experts
GYAN 2004 Presentation
GYAN and the UN MDGs
Tony Twyman award paper 2012 ’Video across platforms’ - asi 2012 TV Sy…
CD September 204 - 360 Bam Nuttall
The Future of Employee Research Report
Bus Rapid Transit (BRT) and urban development in Latin America and India - By...
2011 Clarington Energy Summit - OPG Refurbishment Presentation by Dietmar Reiner
Bus Karo: Bus Depot Design Guideline (Session VII)
Székely nemzeti anarchizmus - Erdélyi pártosztódások az infantilizmus szintjén
Examining the Relationship between Bus Rapid Transit (BRT) and the Built Envi...
Excell 2012 USP\'s
Contract presentation
International marketing research
Ms excell
Ad

Similar to MACROS excel (20)

PDF
0403-excel-macros-made-easy.pdf
DOCX
Excel vba
PPTX
Recordingandrunningmacrosintheofficeapplication3
PPTX
Introduction To Excel 2007 Macros
PPTX
Recording and running macros in the office application
PPTX
VBA
PDF
40 Ready to Use Excel VBA and Macros (Mac Guru).pdf
PPTX
Excel Macros automate tasks you do often.
PPT
Excel 2007 Unit I
DOC
Excel Vba Basic Tutorial 1
PPTX
Intro macros in Excel 2007
PPTX
Creating a Microsoft Excel Macro
PDF
PPTX
Working with Excel Macros
PPTX
ExcelMacros.pptx
PPT
Spreadsheet Analytical Tools
PPTX
Learn VBA Training & Advance Excel Courses in Delhi
PDF
Online Advance Excel & VBA Training in India
PPTX
ExcelMacros.pptx
PPTX
How to apply a formula and macro in excel......by irfan afzal
0403-excel-macros-made-easy.pdf
Excel vba
Recordingandrunningmacrosintheofficeapplication3
Introduction To Excel 2007 Macros
Recording and running macros in the office application
VBA
40 Ready to Use Excel VBA and Macros (Mac Guru).pdf
Excel Macros automate tasks you do often.
Excel 2007 Unit I
Excel Vba Basic Tutorial 1
Intro macros in Excel 2007
Creating a Microsoft Excel Macro
Working with Excel Macros
ExcelMacros.pptx
Spreadsheet Analytical Tools
Learn VBA Training & Advance Excel Courses in Delhi
Online Advance Excel & VBA Training in India
ExcelMacros.pptx
How to apply a formula and macro in excel......by irfan afzal

More from Zenobia Sukhia (18)

PPTX
PPTX
Logistical packaging
PPT
E choupal
PPTX
Euthanasia
PPTX
Iso 9000 14000-20000
PPTX
Role of rbi & co operative movement
PPTX
Inventory mgmt n jit
PPTX
Strategic mgmt
PPTX
Role of rbi in the mgmt of forex mkt in india
PPTX
PPT
6 thinking hats
PPTX
Psychological disorder
PPTX
Law factories act
PPTX
PPT
Law quasi contract
PPTX
tata group
PPTX
types of network
PPTX
diamond personality
Logistical packaging
E choupal
Euthanasia
Iso 9000 14000-20000
Role of rbi & co operative movement
Inventory mgmt n jit
Strategic mgmt
Role of rbi in the mgmt of forex mkt in india
6 thinking hats
Psychological disorder
Law factories act
Law quasi contract
tata group
types of network
diamond personality

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PPTX
History, Philosophy and sociology of education (1).pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cell Structure & Organelles in detailed.
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
master seminar digital applications in india
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Lesson notes of climatology university.
Computing-Curriculum for Schools in Ghana
History, Philosophy and sociology of education (1).pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Microbial diseases, their pathogenesis and prophylaxis
Anesthesia in Laparoscopic Surgery in India
Cell Structure & Organelles in detailed.
Practical Manual AGRO-233 Principles and Practices of Natural Farming
master seminar digital applications in india
Chinmaya Tiranga quiz Grand Finale.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
Weekly quiz Compilation Jan -July 25.pdf
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Lesson notes of climatology university.

MACROS excel

  • 2. Most users have come across the word MACRO, one time or another using Excel. A macro is a recording of sorts, that stores your actions, step by step. Macros are used to eliminate the need to repeat the steps of common tasks over and over. Tasks such as adding or removing rows and columns, selecting a range of cells, or changing textcolor, fonts etc. In Excel, macros are written in Visual Basic for Applications (VBA). For those who cannot write VBA code, Excel allows you to record a series of steps – using keyboard and mouse – that Excel then converts into a macro.
  • 4. Open a blank Excel Document and click on the VIEW-Ribbon. All the way to the right is the Macro Button. Click on the little black arrow underneath the Macro Icon, and choose: “Use Relative References”. Click the little black arrow (under the macro icon) again. This time, choose “Record Macro”. Call it “First”, Click OK.
  • 5. Now, Click on a Cell and type. Select a sample of cells around the text you wrote. Click on the HOME-Ribbon, and set text color and background color. Click the little black arrow underneath the macro icon, once more, choose “Stop Recording”.
  • 6. Highlight a new cell. Click on the Macro Icon, showing a list of available macros and Click RUN. What you see is that Excel now replicates our steps, on a new set of cells. Choose a different Cell, and try it again to see that it works.
  • 7. To see what the code looks like, click the Macro Icon again, choose the macro and click EDIT. This will open the VBA editor and show your macro: Sub First() ' ' First Macro '' ActiveCell.FormulaR1C1 = "This is my first Macro Recording" ActiveCell.Select Selection.Font.Bold = True With Selection.Font .Color = -16776961 .TintAndShade = 0 End With ActiveCell.Range("A1:D3").Select With Selection.Interior .PatternColorIndex = xlAutomatic .Color = 65535 .TintAndShade = 0 .PatternTintAndShade = 0 End With End Sub