1
NUS Libraries National University of Singapore Asset Management, Central Library, 12 Kent Ridge Crescent, Singapore 119275. VBA: Visual Basic for Applications Limitless Possibilities Cheng Eng Aun ƒ Ng Peck Suan ƒ Ong Hong Kiat ƒ Geraldine Kwang ƒ Wong Suei Nee [email protected] ƒ [email protected] ƒ [email protected] ƒ [email protected] ƒ [email protected] What is VBA? Feature Advantage Available in every Microsoft Office suite No additional cost Visual Basic resembles English language Eases the learning curve Access to Windows API Deep integration to low-level functions Conditionals Data treated according to scenarios Looping Automating repetitive processes Sequential or simultaneous execution Optimizing use of computational resources An Integrated Development Environment in Microsoft Office Uses a variant of Visual Basic Manual Copy titlefrom Excellist Searchin OPAC Examine results page Enter resultsin Excellist Auto Prepare OPACURLs fromtitle Openpage through MSXML Retrieve textfrom specific classes Extract required datausing functions Application Example: Macro for Checking Title List in OPAC 15s Cycle Time 3s Cycle Time Runs in the background Requires a dedicated staff

VBA: Visual Basic for Applications - las.org.sg · NUS Libraries National University of Singapore Asset Management, Central Library, 12 Kent Ridge Crescent, Singapore 119275. VBA:

Embed Size (px)

Citation preview

Page 1: VBA: Visual Basic for Applications - las.org.sg · NUS Libraries National University of Singapore Asset Management, Central Library, 12 Kent Ridge Crescent, Singapore 119275. VBA:

NUS LibrariesNational University of SingaporeAsset Management, Central Library, 12 Kent Ridge Crescent, Singapore 119275.

VBA: Visual Basic for ApplicationsLimitless Possibilities

Cheng Eng Aun Ng Peck Suan Ong Hong Kiat Geraldine Kwang Wong Suei [email protected] [email protected] [email protected] [email protected] [email protected]

What is VBA?

Feature Advantage

Available in every Microsoft Office suite No additional cost

Visual Basic resembles English language Eases the learning curve

Access to Windows API Deep integration to low-level functions

Conditionals Data treated according to scenarios

Looping Automating repetitive processes

Sequential or simultaneous execution Optimizing use of computational resources

An Integrated Development Environment in Microsoft Office Uses a variant of Visual Basic

Manual

Copytitle fromExcel list

Search inOPAC

Examineresultspage

Enterresults inExcel list

Auto

PrepareOPAC URLsfrom title

Open pagethroughMSXML

Retrievetext fromspecificclasses

Extractrequireddata usingfunctions

Application Example: Macro for Checking Title List in OPAC

15sCycle Time

3sCycle Time

Runs in the backgroundRequires a dedicated staff