SlideShare a Scribd company logo
VBA In Excel 2007
www.myassignmenthelp.net
TheDeveloper Tab
Click the Office Button then click the Excel Options button at the bottom of
the window to open the Excel Options dialog. In the Popular section check the
box marked Show Developer tab in the Ribbon then click the OK button. Fig,
Switch on the Developer Tab from Excel Options.
www.myassignmenthelp.net
www.myassignmenthelp.net
This displays the Developer tab in the ribbon. The tools on the Developer
tab are arranged in four groups: Code, Controls, XML and Modify. Fig, The
Developer Tab in Excel.
TheDeveloper Tab
www.myassignmenthelp.net
The Code group contains the tools most commonly used when recording
and running macros and also gives quick access to the Visual Basic Editor. When the
View tab is selected the ribbon displays a Macros group which also gives access to
the required tools. Fig, Macro options on the View tab.
TheDeveloper Tab
Macrosand Excel FileTypes
www.myassignmenthelp.net
The default file type for an Excel 2007 workbook has a *.xlsx extension. If
you record a macro or write VBA code and then save the workbook as the standard
file type Excel displays a message warning that a VB project can not be saved in a
macro-free workbook (*.xlsx). If you continue and save in this format all your
macro code will be lost. Fig, *.xlsx workbook can not contain macros.
To preserve your macro code you should choose to save the file as a
macro-enabled workbook (*.xlsm). Files saved in 97-2003 workbook (*.xls) format
for compatibility with earlier versions of Excel do not distinguish at the point of
saving between those which contain code and those which don't, so your code
will not be lost if you save in this format. Fig, Saving as an Excel Macro-Enabled
Workbook
www.myassignmenthelp.net
Macrosand Excel FileTypes
In addition to the different file extensions, Excel 2007 uses different icons to
identify the various file types. This helps to provide advanced warning that a
workbook contains macros or other VBA code.
www.myassignmenthelp.net
Macrosand Excel FileTypes
Recording Macros
To record a macro click the View tab then open the Macros section of the
ribbon and click the Record Macro button (Fig. Recording a macro from the View
tab) or click the Developer tab and click the Record Macro button in the Code
section (Fig. Recording a macro from the Developer tab).
www.myassignmenthelp.net
In the Record Macro dialog box enter a name for the macro, choose a
location for it to be stored in, and optionally add a description and shortcut key (Fig.
The Record Macro dialog box) then click the OK button to begin recording.
www.myassignmenthelp.net
Recording Macros
Normally absolute cell references are recorded (i.e. the same cells that
were used during the recording will be worked on when the macro is run). At any
time whilst recording you can choose to record relative cell references. To do this
visit the View or Developer tabs again and click the Use Relative References
button. This button toggles the relative reference recording mode on and off.
Finally, return to the View tab (Fig. The Stop Recording button on the View tab) or
the Developer tab (Fig. The Stop Recording button on the Developer tab) and click
the Stop Recording button to save your macro.
www.myassignmenthelp.net
Recording Macros
Running Macros
www.myassignmenthelp.ne
To run a macro click the View tab then open the Macros section of the
ribbon and click the Macros button (Fig. The macros button) or click the Developer
tab and click Macros button in the Code section. Alternatively use the keyboard
shortcut [Alt]+[F8]. This opens the Macro dialog box (Fig. The Macro dialog box).
Choose the macro you want to run and click the Run button.
Macro Security Warnings
If Excel's macro security is set at the default level, when you open a macro-
enabled workbook a warning is displayed in the Message Bar notifying you that
macros have been disabled (Fig. The macro-enabled workbook triggers a security
warning).
www.myassignmenthelp.net
Click the Options button on the Message Bar to open the Microsoft Office
Security Options dialog which explains why the message was shown and offers the
option to enable the macros contained in the file (Fig. The Security Options dialog
box). If you trust the file select Enable this content then click the OK button to close
the dialog and enable the macros.
www.myassignmenthelp.ne
Macro Security Warnings
Macro Settings
www.myassignmenthelp.net
In Microsoft Office 2007 all security options are controlled from a single
point called the Trust Center. The Security Options dialog includes a link to the Trust
Center. You can also open it by clicking the Office Button then clicking Excel Options
and choosing Trust Center. Finally, click the Trust Center Settings button to open
the Trust Center dialog box. Fig, The Macro Setting section of the Trust Center
Trusted Publishers
www.myassignmenthelp.net
If you want to trust macros that are digitally signed you must first add them
to the list of Trusted Publishers. When you open a workbook that contains a digital
signature that is not already on the list of Trusted Publishers Excel displays a
security alert giving brief details of the digital signature (Fig. The workbook includes
an new Digital Signature).
www.myassignmenthelp.net
You can view the list of Trusted Publishers any time by visiting the Trusted
Publishers section of the Trust Center (Fig. The Trust Center displays a list of Trusted
Publishers). Here you can view a publishers' security certificate and, if you wish,
remove a publisher from the Trusted Publishers list.
Trusted Publishers
www.myassignmenthelp.net
You can view the list of Trusted Publishers any time by visiting the Trusted
Publishers section of the Trust Center (Fig. The Trust Center displays a list of Trusted
Publishers). Here you can view a publishers' security certificate and, if you wish,
remove a publisher from the Trusted Publishers list.
Trusted Publishers
Trusted Locations
www.myassignmenthelp.net
If you have numerous files that contain macros and that you know are safe
an alternative to using the digital signature system is to store those files in a Trusted
Location. Visit the Trusted Locations section of the Trust Center to view a list of
existing locations. To add a new location to the list click the Add new location
button to open the Microsoft Office Trusted Location dialog box then click the
Browse button to locate and select the folder that you want to designate as a
Trusted Location (Fig. Creating a new Trusted Location). You can use an existing
folder or create a new one. Click the OK button to complete the process.
www.myassignmenthelp.net
Your new Trusted Location will now appear on the list of Trusted Locations in
the Trust Center (Fig. The Trust Center displays a list of Trusted Locations). Here you
can modify existing locations, remove them from the list or temporarily disable
them. It is not recommended that you use a network location that other users have
access to as a Trusted Location.
Trusted Locations
www.myassignmenthelp.net
Thank You
For More Info Visit: www.myassignmenthelp.net

More Related Content

What's hot

Query Analyser , SQL Server Groups, Transact –SQL
Query Analyser , SQL Server Groups, Transact –SQLQuery Analyser , SQL Server Groups, Transact –SQL
Query Analyser , SQL Server Groups, Transact –SQL
Komal Batra
 
oracle-forms
oracle-formsoracle-forms
oracle-forms
jeff100000
 
Oracle Forms
Oracle FormsOracle Forms
Oracle Forms
PabloVinueza
 
Accounting Module
Accounting ModuleAccounting Module
Accounting Module
autisimclinic
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text Tips
EMAINT
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
Aeric Poon
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
art02
 
Exploring Microsoft Office Getting Started with Windows 7
Exploring Microsoft Office  Getting Started with Windows 7Exploring Microsoft Office  Getting Started with Windows 7
Exploring Microsoft Office Getting Started with Windows 7
Raj Alam
 
Chapter 10.1.4
Chapter 10.1.4Chapter 10.1.4
Chapter 10.1.4
patcha535
 
creating data
creating datacreating data
creating data
sabinji
 
Audit Module
Audit ModuleAudit Module
Audit Module
autisimclinic
 
Forgot Password to Unprotect Excel Sheet in Two Cases
Forgot Password to Unprotect Excel Sheet in Two CasesForgot Password to Unprotect Excel Sheet in Two Cases
Forgot Password to Unprotect Excel Sheet in Two Cases
Aadewea
 
BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)
James Schneider
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Excel 2013
Excel 2013Excel 2013
Excel 2013
Raghu nath
 
Excel® 2013
Excel® 2013Excel® 2013
Excel® 2013
Raghu nath
 
Adv excel® 2013
Adv excel® 2013Adv excel® 2013
Adv excel® 2013
Raghu nath
 
Microsft access 2003 tutorial isa
Microsft access 2003 tutorial isaMicrosft access 2003 tutorial isa
Microsft access 2003 tutorial isa
isawaroh74
 
Chapter 10.1.5
Chapter 10.1.5Chapter 10.1.5
Chapter 10.1.5
patcha535
 
Make a Password storage using Excel
Make a Password storage using ExcelMake a Password storage using Excel
Make a Password storage using Excel
Mahmudur Rahman
 

What's hot (20)

Query Analyser , SQL Server Groups, Transact –SQL
Query Analyser , SQL Server Groups, Transact –SQLQuery Analyser , SQL Server Groups, Transact –SQL
Query Analyser , SQL Server Groups, Transact –SQL
 
oracle-forms
oracle-formsoracle-forms
oracle-forms
 
Oracle Forms
Oracle FormsOracle Forms
Oracle Forms
 
Accounting Module
Accounting ModuleAccounting Module
Accounting Module
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text Tips
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Exploring Microsoft Office Getting Started with Windows 7
Exploring Microsoft Office  Getting Started with Windows 7Exploring Microsoft Office  Getting Started with Windows 7
Exploring Microsoft Office Getting Started with Windows 7
 
Chapter 10.1.4
Chapter 10.1.4Chapter 10.1.4
Chapter 10.1.4
 
creating data
creating datacreating data
creating data
 
Audit Module
Audit ModuleAudit Module
Audit Module
 
Forgot Password to Unprotect Excel Sheet in Two Cases
Forgot Password to Unprotect Excel Sheet in Two CasesForgot Password to Unprotect Excel Sheet in Two Cases
Forgot Password to Unprotect Excel Sheet in Two Cases
 
BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)BlackOps Projects (SQL Server Add-Ins)
BlackOps Projects (SQL Server Add-Ins)
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Excel 2013
Excel 2013Excel 2013
Excel 2013
 
Excel® 2013
Excel® 2013Excel® 2013
Excel® 2013
 
Adv excel® 2013
Adv excel® 2013Adv excel® 2013
Adv excel® 2013
 
Microsft access 2003 tutorial isa
Microsft access 2003 tutorial isaMicrosft access 2003 tutorial isa
Microsft access 2003 tutorial isa
 
Chapter 10.1.5
Chapter 10.1.5Chapter 10.1.5
Chapter 10.1.5
 
Make a Password storage using Excel
Make a Password storage using ExcelMake a Password storage using Excel
Make a Password storage using Excel
 

Similar to Learn Vba excel 2007

Excel chapter-7
Excel chapter-7Excel chapter-7
Excel chapter-7
OpenCastLabs Consulting
 
Recording and running macros in the office application
Recording and running macros in the office applicationRecording and running macros in the office application
Recording and running macros in the office application
putiadetiara
 
VBA
VBAVBA
VBA
Tekish
 
Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3
Astrid yolanda
 
Form4 cd4
Form4 cd4Form4 cd4
Form4 cd4
smktsj2
 
Intellect_Integration_-_Web_Integration_Methods.pdf
Intellect_Integration_-_Web_Integration_Methods.pdfIntellect_Integration_-_Web_Integration_Methods.pdf
Intellect_Integration_-_Web_Integration_Methods.pdf
Modern Modular NY.
 
Access5
Access5Access5
Access5
JTHSICT
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivas
Ali Ibrahim
 
Remedy Presentation
Remedy PresentationRemedy Presentation
Remedy Presentation
Charrisa Coulibaly
 
VT University Live Session 3
VT University Live Session 3VT University Live Session 3
VT University Live Session 3
VisibleThread
 
Notacd04
Notacd04Notacd04
Notacd04
Azmiah Mahmud
 
Notacd04
Notacd04Notacd04
Notacd04
cikgushaharizan
 
Controls Use in Windows Presentation Foundation (WPF)
Controls Use in Windows Presentation Foundation (WPF)Controls Use in Windows Presentation Foundation (WPF)
Controls Use in Windows Presentation Foundation (WPF)
iFour Technolab Pvt. Ltd.
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
EPC Group
 
Mule addcontactsintosalesforce
Mule addcontactsintosalesforceMule addcontactsintosalesforce
Mule addcontactsintosalesforce
himajareddys
 
VBA Tips
VBA TipsVBA Tips
VBA Tips
Ike Onwubuya
 
ExcelMacros.pptx
ExcelMacros.pptxExcelMacros.pptx
ExcelMacros.pptx
AshishDhiman62
 
Sap business-object-universe-idt-lab-i
Sap business-object-universe-idt-lab-iSap business-object-universe-idt-lab-i
Sap business-object-universe-idt-lab-i
Amit Sharma
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforce
D.Rajesh Kumar
 
Using macros in microsoft access
Using macros in microsoft accessUsing macros in microsoft access
Using macros in microsoft access
Er. Nawaraj Bhandari
 

Similar to Learn Vba excel 2007 (20)

Excel chapter-7
Excel chapter-7Excel chapter-7
Excel chapter-7
 
Recording and running macros in the office application
Recording and running macros in the office applicationRecording and running macros in the office application
Recording and running macros in the office application
 
VBA
VBAVBA
VBA
 
Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3
 
Form4 cd4
Form4 cd4Form4 cd4
Form4 cd4
 
Intellect_Integration_-_Web_Integration_Methods.pdf
Intellect_Integration_-_Web_Integration_Methods.pdfIntellect_Integration_-_Web_Integration_Methods.pdf
Intellect_Integration_-_Web_Integration_Methods.pdf
 
Access5
Access5Access5
Access5
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivas
 
Remedy Presentation
Remedy PresentationRemedy Presentation
Remedy Presentation
 
VT University Live Session 3
VT University Live Session 3VT University Live Session 3
VT University Live Session 3
 
Notacd04
Notacd04Notacd04
Notacd04
 
Notacd04
Notacd04Notacd04
Notacd04
 
Controls Use in Windows Presentation Foundation (WPF)
Controls Use in Windows Presentation Foundation (WPF)Controls Use in Windows Presentation Foundation (WPF)
Controls Use in Windows Presentation Foundation (WPF)
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
 
Mule addcontactsintosalesforce
Mule addcontactsintosalesforceMule addcontactsintosalesforce
Mule addcontactsintosalesforce
 
VBA Tips
VBA TipsVBA Tips
VBA Tips
 
ExcelMacros.pptx
ExcelMacros.pptxExcelMacros.pptx
ExcelMacros.pptx
 
Sap business-object-universe-idt-lab-i
Sap business-object-universe-idt-lab-iSap business-object-universe-idt-lab-i
Sap business-object-universe-idt-lab-i
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforce
 
Using macros in microsoft access
Using macros in microsoft accessUsing macros in microsoft access
Using macros in microsoft access
 

More from Steve Johnson

Science of boredom
Science of boredomScience of boredom
Science of boredom
Steve Johnson
 
How to create effective powerpoint presentation
How to create effective powerpoint presentationHow to create effective powerpoint presentation
How to create effective powerpoint presentation
Steve Johnson
 
How to approach your first assignment
How to approach  your first  assignmentHow to approach  your first  assignment
How to approach your first assignment
Steve Johnson
 
Algorithm
AlgorithmAlgorithm
Algorithm
Steve Johnson
 
A quick guide on accounting process of bookkeeping
A quick guide on accounting process of bookkeepingA quick guide on accounting process of bookkeeping
A quick guide on accounting process of bookkeeping
Steve Johnson
 
Online education vs classroom teaching
Online education vs classroom teachingOnline education vs classroom teaching
Online education vs classroom teaching
Steve Johnson
 
Darwin’s theory of evolution
Darwin’s theory of evolutionDarwin’s theory of evolution
Darwin’s theory of evolution
Steve Johnson
 
Learn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.NetLearn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.Net
Steve Johnson
 
Learn c++ Programming Language
Learn c++ Programming LanguageLearn c++ Programming Language
Learn c++ Programming Language
Steve Johnson
 
What is a Scientific Presentation ?
What is a Scientific Presentation ?What is a Scientific Presentation ?
What is a Scientific Presentation ?
Steve Johnson
 
Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and Oracle
Steve Johnson
 
What is Psychology ?
What is Psychology ?What is Psychology ?
What is Psychology ?
Steve Johnson
 
Biology Assignments
Biology AssignmentsBiology Assignments
Biology Assignments
Steve Johnson
 
Biology Assignments
Biology AssignmentsBiology Assignments
Biology Assignments
Steve Johnson
 

More from Steve Johnson (14)

Science of boredom
Science of boredomScience of boredom
Science of boredom
 
How to create effective powerpoint presentation
How to create effective powerpoint presentationHow to create effective powerpoint presentation
How to create effective powerpoint presentation
 
How to approach your first assignment
How to approach  your first  assignmentHow to approach  your first  assignment
How to approach your first assignment
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
A quick guide on accounting process of bookkeeping
A quick guide on accounting process of bookkeepingA quick guide on accounting process of bookkeeping
A quick guide on accounting process of bookkeeping
 
Online education vs classroom teaching
Online education vs classroom teachingOnline education vs classroom teaching
Online education vs classroom teaching
 
Darwin’s theory of evolution
Darwin’s theory of evolutionDarwin’s theory of evolution
Darwin’s theory of evolution
 
Learn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.NetLearn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.Net
 
Learn c++ Programming Language
Learn c++ Programming LanguageLearn c++ Programming Language
Learn c++ Programming Language
 
What is a Scientific Presentation ?
What is a Scientific Presentation ?What is a Scientific Presentation ?
What is a Scientific Presentation ?
 
Difference Between Sql - MySql and Oracle
Difference Between Sql - MySql and OracleDifference Between Sql - MySql and Oracle
Difference Between Sql - MySql and Oracle
 
What is Psychology ?
What is Psychology ?What is Psychology ?
What is Psychology ?
 
Biology Assignments
Biology AssignmentsBiology Assignments
Biology Assignments
 
Biology Assignments
Biology AssignmentsBiology Assignments
Biology Assignments
 

Recently uploaded

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 

Recently uploaded (20)

World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 

Learn Vba excel 2007

  • 1. VBA In Excel 2007 www.myassignmenthelp.net
  • 2. TheDeveloper Tab Click the Office Button then click the Excel Options button at the bottom of the window to open the Excel Options dialog. In the Popular section check the box marked Show Developer tab in the Ribbon then click the OK button. Fig, Switch on the Developer Tab from Excel Options. www.myassignmenthelp.net
  • 3. www.myassignmenthelp.net This displays the Developer tab in the ribbon. The tools on the Developer tab are arranged in four groups: Code, Controls, XML and Modify. Fig, The Developer Tab in Excel. TheDeveloper Tab
  • 4. www.myassignmenthelp.net The Code group contains the tools most commonly used when recording and running macros and also gives quick access to the Visual Basic Editor. When the View tab is selected the ribbon displays a Macros group which also gives access to the required tools. Fig, Macro options on the View tab. TheDeveloper Tab
  • 5. Macrosand Excel FileTypes www.myassignmenthelp.net The default file type for an Excel 2007 workbook has a *.xlsx extension. If you record a macro or write VBA code and then save the workbook as the standard file type Excel displays a message warning that a VB project can not be saved in a macro-free workbook (*.xlsx). If you continue and save in this format all your macro code will be lost. Fig, *.xlsx workbook can not contain macros.
  • 6. To preserve your macro code you should choose to save the file as a macro-enabled workbook (*.xlsm). Files saved in 97-2003 workbook (*.xls) format for compatibility with earlier versions of Excel do not distinguish at the point of saving between those which contain code and those which don't, so your code will not be lost if you save in this format. Fig, Saving as an Excel Macro-Enabled Workbook www.myassignmenthelp.net Macrosand Excel FileTypes
  • 7. In addition to the different file extensions, Excel 2007 uses different icons to identify the various file types. This helps to provide advanced warning that a workbook contains macros or other VBA code. www.myassignmenthelp.net Macrosand Excel FileTypes
  • 8. Recording Macros To record a macro click the View tab then open the Macros section of the ribbon and click the Record Macro button (Fig. Recording a macro from the View tab) or click the Developer tab and click the Record Macro button in the Code section (Fig. Recording a macro from the Developer tab). www.myassignmenthelp.net
  • 9. In the Record Macro dialog box enter a name for the macro, choose a location for it to be stored in, and optionally add a description and shortcut key (Fig. The Record Macro dialog box) then click the OK button to begin recording. www.myassignmenthelp.net Recording Macros
  • 10. Normally absolute cell references are recorded (i.e. the same cells that were used during the recording will be worked on when the macro is run). At any time whilst recording you can choose to record relative cell references. To do this visit the View or Developer tabs again and click the Use Relative References button. This button toggles the relative reference recording mode on and off. Finally, return to the View tab (Fig. The Stop Recording button on the View tab) or the Developer tab (Fig. The Stop Recording button on the Developer tab) and click the Stop Recording button to save your macro. www.myassignmenthelp.net Recording Macros
  • 11. Running Macros www.myassignmenthelp.ne To run a macro click the View tab then open the Macros section of the ribbon and click the Macros button (Fig. The macros button) or click the Developer tab and click Macros button in the Code section. Alternatively use the keyboard shortcut [Alt]+[F8]. This opens the Macro dialog box (Fig. The Macro dialog box). Choose the macro you want to run and click the Run button.
  • 12. Macro Security Warnings If Excel's macro security is set at the default level, when you open a macro- enabled workbook a warning is displayed in the Message Bar notifying you that macros have been disabled (Fig. The macro-enabled workbook triggers a security warning). www.myassignmenthelp.net
  • 13. Click the Options button on the Message Bar to open the Microsoft Office Security Options dialog which explains why the message was shown and offers the option to enable the macros contained in the file (Fig. The Security Options dialog box). If you trust the file select Enable this content then click the OK button to close the dialog and enable the macros. www.myassignmenthelp.ne Macro Security Warnings
  • 14. Macro Settings www.myassignmenthelp.net In Microsoft Office 2007 all security options are controlled from a single point called the Trust Center. The Security Options dialog includes a link to the Trust Center. You can also open it by clicking the Office Button then clicking Excel Options and choosing Trust Center. Finally, click the Trust Center Settings button to open the Trust Center dialog box. Fig, The Macro Setting section of the Trust Center
  • 15. Trusted Publishers www.myassignmenthelp.net If you want to trust macros that are digitally signed you must first add them to the list of Trusted Publishers. When you open a workbook that contains a digital signature that is not already on the list of Trusted Publishers Excel displays a security alert giving brief details of the digital signature (Fig. The workbook includes an new Digital Signature).
  • 16. www.myassignmenthelp.net You can view the list of Trusted Publishers any time by visiting the Trusted Publishers section of the Trust Center (Fig. The Trust Center displays a list of Trusted Publishers). Here you can view a publishers' security certificate and, if you wish, remove a publisher from the Trusted Publishers list. Trusted Publishers
  • 17. www.myassignmenthelp.net You can view the list of Trusted Publishers any time by visiting the Trusted Publishers section of the Trust Center (Fig. The Trust Center displays a list of Trusted Publishers). Here you can view a publishers' security certificate and, if you wish, remove a publisher from the Trusted Publishers list. Trusted Publishers
  • 18. Trusted Locations www.myassignmenthelp.net If you have numerous files that contain macros and that you know are safe an alternative to using the digital signature system is to store those files in a Trusted Location. Visit the Trusted Locations section of the Trust Center to view a list of existing locations. To add a new location to the list click the Add new location button to open the Microsoft Office Trusted Location dialog box then click the Browse button to locate and select the folder that you want to designate as a Trusted Location (Fig. Creating a new Trusted Location). You can use an existing folder or create a new one. Click the OK button to complete the process.
  • 19. www.myassignmenthelp.net Your new Trusted Location will now appear on the list of Trusted Locations in the Trust Center (Fig. The Trust Center displays a list of Trusted Locations). Here you can modify existing locations, remove them from the list or temporarily disable them. It is not recommended that you use a network location that other users have access to as a Trusted Location. Trusted Locations
  • 20. www.myassignmenthelp.net Thank You For More Info Visit: www.myassignmenthelp.net