SlideShare ist ein Scribd-Unternehmen logo
1 von 20
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

Weitere ähnliche Inhalte

Was ist angesagt?

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 –SQLKomal Batra
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text TipsEMAINT
 
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 notesart02
 
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 7Raj Alam
 
Chapter 10.1.4
Chapter 10.1.4Chapter 10.1.4
Chapter 10.1.4patcha535
 
creating data
creating datacreating data
creating datasabinji
 
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 CasesAadewea
 
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
 
Adv excel® 2013
Adv excel® 2013Adv excel® 2013
Adv excel® 2013Raghu nath
 
Microsft access 2003 tutorial isa
Microsft access 2003 tutorial isaMicrosft access 2003 tutorial isa
Microsft access 2003 tutorial isaisawaroh74
 
Chapter 10.1.5
Chapter 10.1.5Chapter 10.1.5
Chapter 10.1.5patcha535
 
Make a Password storage using Excel
Make a Password storage using ExcelMake a Password storage using Excel
Make a Password storage using ExcelMahmudur Rahman
 

Was ist angesagt? (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
 

Ähnlich wie Learn Vba excel 2007

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 applicationputiadetiara
 
Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3Recordingandrunningmacrosintheofficeapplication3
Recordingandrunningmacrosintheofficeapplication3Astrid yolanda
 
Form4 cd4
Form4 cd4Form4 cd4
Form4 cd4smktsj2
 
Oracle General ledger ivas
Oracle General ledger ivasOracle General ledger ivas
Oracle General ledger ivasAli Ibrahim
 
VT University Live Session 3
VT University Live Session 3VT University Live Session 3
VT University Live Session 3VisibleThread
 
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 epcEPC Group
 
Mule addcontactsintosalesforce
Mule addcontactsintosalesforceMule addcontactsintosalesforce
Mule addcontactsintosalesforcehimajareddys
 
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-iAmit Sharma
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforceD.Rajesh Kumar
 
Dynamics 365 self hosting bots
Dynamics 365 self hosting botsDynamics 365 self hosting bots
Dynamics 365 self hosting botsAmit Patil
 

Ähnlich wie 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
 
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
 
Dynamics 365 self hosting bots
Dynamics 365 self hosting botsDynamics 365 self hosting bots
Dynamics 365 self hosting bots
 

Mehr von Steve Johnson

How to create effective powerpoint presentation
How to create effective powerpoint presentationHow to create effective powerpoint presentation
How to create effective powerpoint presentationSteve Johnson
 
How to approach your first assignment
How to approach  your first  assignmentHow to approach  your first  assignment
How to approach your first assignmentSteve 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 bookkeepingSteve Johnson
 
Online education vs classroom teaching
Online education vs classroom teachingOnline education vs classroom teaching
Online education vs classroom teachingSteve Johnson
 
Darwin’s theory of evolution
Darwin’s theory of evolutionDarwin’s theory of evolution
Darwin’s theory of evolutionSteve Johnson
 
Learn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.NetLearn Data Structures With Myassignmenthelp.Net
Learn Data Structures With Myassignmenthelp.NetSteve Johnson
 
Learn c++ Programming Language
Learn c++ Programming LanguageLearn c++ Programming Language
Learn c++ Programming LanguageSteve 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 OracleSteve Johnson
 
What is Psychology ?
What is Psychology ?What is Psychology ?
What is Psychology ?Steve Johnson
 

Mehr von 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
 

Kürzlich hochgeladen

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Kürzlich hochgeladen (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

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