{ WSH VBScript REFERENCE }

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "{ WSH VBScript REFERENCE }"

Transcription

1 { WSH VBScript REFERENCE } WSH Template <Tags Required to Run> <job id="01"> <script language="(vbscript JScript ">..code goes here </script> </job> SUBS No Return Value Sub mysub() some statements Sub mysub(argument1,argument2) some statements FUNCTIONS Return Value <package> <job id="j1"> <?job debug="false" error="false"?> <script language="jscript" src="zgh.js" /> <script language="vbscript"> s = GetFreeSpace("c:") WScript.Echo s </script> </job> <job id="j2"> <?job debug="false" error="false"?> <script language="vbscript" src="zgh.vbs" /> <script language="vbscript"> s = ReportFileStatus("C:\zgh.js") WScript.Echo s </script> </job> </package> Function myfunction(argument1,argument2) some statements myfunction=some value End Function IF ELSE CONDITIONS if i=10 Then msgbox "Hello" i = i+1 end If if i=10 then msgbox "Hello" else msgbox "Goodbye" end If <job id="01"> <script language="vbscript"> Dim oshell Set oshell = WScript.CreateObject("WScript.shell") 'oshell.run "C:\WINNT\explorer" 'WScript.Sleep 3000 oshell.run """C:\Program Files\Microsoft Office\Office10\FRONTPG.EXE"" C:\Inetpub\wwwroot\pvtGH" WScript.Sleep oshell.run """c:\program Files\Internet Explorer\IEXPLORE.EXE"" WScript.Sleep 3000 Set oshell = Nothing </script> </job> if payment="cash" then msgbox "You are going to pay cash!" elseif payment="visa" then msgbox "You are going to pay with visa." elseif payment="amex" then msgbox "You are going to pay with American Express." else msgbox "Unknown method of payment." end If SELECT CASE CONDITIONAL BRANCHING select case payment case "Cash" msgbox "You are going to pay cash" case "Visa" msgbox "You are going to pay with visa" case "AmEx" msgbox "You are going to pay with American Express" case Else msgbox "Unknown method of payment" end select

2 FOR LOOPS For i=1 to 10 some code For i=2 To 10 Step 2 some code dim cars(2) cars(0)="volvo" cars(1)="saab" For Each x in cars document.write(x & "<br />") 0 = vbapplicationmodal - Application modal (the current application will not work until the user responds to the message box) 4096 = vbsystemmodal - System modal (all applications wont work until the user responds to the message box) CREATE OBJECTS Using VbScript to Create Objects Dim adoapp As Object adoapp = CreateObject("ADODB.Connection") Dim xlapp As Object xlapp = CreateObject("Excel.Application", "\\MyServer") Set objfso = CreateObject("Scripting.FileSystemObject") Set objfso = Wscript.CreateObject("Scripting.FileSystemObject") Using wscript to create objects DO WHILE LOOPS Do Until i=10 some code Loop Do some code Loop Until i=10 Do Until i=10 i=i-1 If i<10 Then Exit Do Loop MSGBOX Dim answer answer=msgbox("hello everyone!",65,"example") document.write(answer) 1 = vbok - OK was clicked 2 = vbcancel - Cancel was clicked 3 = vbabort - Abort was clicked 4 = vbretry - Retry was clicked 5 = vbignore - Ignore was clicked 6 = vbyes - Yes was clicked 7 = vbno - No was clicked 0 = vbokonly - OK button only 1 = vbokcancel - OK and Cancel buttons 2 = vbabortretryignore - Abort, Retry, and Ignore buttons 3 = vbyesnocancel - Yes, No, and Cancel buttons 4 = vbyesno - Yes and No buttons 5 = vbretrycancel - Retry and Cancel buttons 16 = vbcritical - Critical Message icon 32 = vbquestion - Warning Query icon 48 = vbexclamation - Warning Message icon 64 = vbinformation - Information Message icon 0 = vbdefaultbutton1 - First button is default 256 = vbdefaultbutton2 - Second button is default 512 = vbdefaultbutton3 - Third button is default 768 = vbdefaultbutton4 - Fourth button is default Set objreference = Wscript.CreateObject("Word.Application") Set objreference = Wscript.CreateObject("InternetExplorer.Application") Set objreference = Wscript.CreateObject("Scripting.Dictionary") Set objreference = Wscript.CreateObject("Wscript.Network") The first line uses VBScript, and the second uses WSH: Set objexcel = CreateObject("Excel.Application", "Parameter2") Set objexcel = Wscript.CreateObject("Excel.Application", "Parameter2") GET OBJECTS Set objword = WScript.GetObject("C:\test.doc") objword.application.visible = True WScript.Echo "You just opened", objword.name Set objwmiservice = GetObject ("winmgmts:\\" & strcomputer & "\root\cimv2") Set colitems = objwmiservice.execquery ("SELECT * FROM WIN32_OperatingSystem") For Each objitem in colitems Wscript.Echo objitem.caption OUTPUT Set objnetwork = Wscript.CreateObject("Wscript.Network") Set objstdout = WScript.StdOut objstdout.write "User: " objstdout.write objnetwork.userdomain objstdout.write "\" objstdout.write objnetwork.username objstdout.writeblanklines(1) objstdout.writeline objnetwork.computername objstdout.close

3 { FILESYSTEM OBJECT } FileSystem Objects Creation Dim fso Dim FSO Set fso = CreateObject("Scripting.FileSystemObject") Set FSO = CreateObject("Scripting.FileSystemObject") Copy File FSO.CopyFile "c:\compluslog.txt", "c:\x\" Copy Folder FSO.CopyFolder "c:\folder_x", "c:\folder_y" or FileSystemObject.CopyFolder "c:\mydocuments\letters\*", "c:\tempfolder\" Move Folder fso.movefolder Drivespec, "c:\windows\desktop\" Get Special Folders Use for Temp, System and Windows Folder WindowsFolder - 0 SystemFolder - 1 Temp - 2 var tfolder, tfile, tname, fname, TemporaryFolder = 2; tfolder = fso.getspecialfolder(temporaryfolder); WSH SLEEP METHOD Wscript.Sleep WSH TIMEOUT Wscript.Timeout = 5 WSH QUIT Wscript.Quit Get File Set f = fso.getfile(filespec) Get FileName GetAName = fso.getfilename(drivespec) Get Folder Set f = fso.getfolder(path) Create a Text File Set MyFile = fso.createtextfile("c:\testfile.txt", True) Create a Folder Set f = fso.createfolder("c:\new Folder") Open Text File Set f = fso.opentextfile("c:\testfile.txt", ForWriting, True) ForReading ForWriting ForAppending Delete File fso.deletefile(filespec) WSHSHELL SENDKEYS Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "notepad", 9 WScript.Sleep 500 ' Give Notepad some time to load For i = 1 To 10 WshShell.SendKeys "Hello World!" WshShell.SendKeys "{ENTER}" BACKSPACE {BACKSPACE}, {BS}, or {BKSP} DEL or DELETE {DELETE} or {DEL} ENTER {ENTER} or ~ PRINT SCREEN {PRTSC} TAB {TAB} F1 F12 {F1}-{Fn} SHIFT + CTRL ^ ALT % For example, the following strkeystring produces the CTRL-ALT-DELETE keystroke combination: "^%{DELETE}" Delete Folder fso.deletefolder(filespec) File Exist Check If (fso.fileexists(filespec)) Then msg = filespec & " exists." Else msg = filespec & " doesn't exist." SETTING UP NETWORK SHARES Set WshNetwork = WScript.CreateObject("WScript.Network") WshNetwork.MapNetworkDrive "Z:", "\\Server\PublicFiles" WshNetwork.RemoveNetworkDrive "Z:" Set WshNetwork = WScript.CreateObject("WScript.Network") WshNetwork.MapNetworkDrive "Z:", "\\Server\PublicFiles" WshNetwork.RemoveNetworkDrive "Z:" If Folder Exists If (fso.folderexists(fldr)) Then msg = fldr & " exists." Else msg = fldr & " doesn't exist."

4 LOGGING EVENTS Set WshShell = CreateObject("WScript.Shell") WshShell.LogEvent 4, "Script started." WshShell.LogEvent 0, "Script completed." 0 SUCCESS 1 ERROR 2 WARNING 4 INFORMATION 8 AUDIT_SUCCESS 16 AUDIT_FAILURE RUNNING SCRIPTS WScript.Echo msg HOST RESOURCES Set objconnection = GetObject("WinNT://atl-ws-01/LanmanServer") Set colresources = objconnection.resources For Each objresource in colresources Wscript.Echo "Path: " & objresource.path Wscript.Echo "User: " & objresource.user Wscript.Echo > cscript //nologo c:\"sample scripts"\chart.vbs > cscript myscript.wsf. INPUTBOX stranswer = InputBox("Please enter a name for your new file:", _ "Create File") If stranswer = "" Then Wscript.Quit Else Wscript.Echo stranswer Set objwmiservice = GetObject _ ("winmgmts:\\" & strcomputer & "\root\cimv2") Set colitems = objwmiservice.execquery _ ("SELECT * FROM WIN32_OperatingSystem") For Each objitem in colitems Wscript.Echo objitem.caption DATES and DATE TIME dtmtoday = Date() dtmdayofweek = DatePart("w", dtmtoday) SETTING UP ARGUMENTS IN COMMAND LINE Example: Set args = WScript.Arguments num = args.count If num = 0 then WScript.Echo "Usage: [CScript WScript] drivespace.vbs <driveletters>" WScript.Quit 1 End if Set FileSystemObj = CreateObject("Scripting.FileSystemObject") msg = "Drive space report" & vbcrlf For k = 0 To num - 1 driveletter = args.item(k) Set drive = FileSystemObj.GetDrive(DriveLetter) FindSpace drive, msg

5 WSH TEXT STREAM OBJECT: TextStream A Textstream object is returned by the StdErr, StdIn and StdOut properties of the WScript object. For full details of this object and its properties and methods, see the VBScript Textstream object Quick Reference. TEXT STREAM PROPERTIES AtEndOfLine Property Returns a Boolean value. If the file pointer is positioned immediately before the file's end-of-line marker, the value is True, and False otherwise. Syntax: object.atendofline AtEndOfStream Property Returns a Boolean value. If the file pointer is positioned at the end of a file, the value is True, and False otherwise. Syntax: object.atendofstream Column Property Returns the current position of the file pointer within the current line. Column 1 is the first character in each line. Moves the file pointer from its current position to the beginning of the next line. Syntax: object.skipline Write Method This method writes the parameter string to an open TextStream file. Syntax: object.write(string) WriteLine Method Writes the optional parameter string to a TextStream file, followed by a new line character. Syntax: object.writeline([string]) WriteBlankLines Method Used to write a number of consecutive newline characters (defined with the lines parameter) to a TextStream file. Syntax: object. WriteBlankLines (lines) Syntax: object.column Line Property This property returns the current line number in a text file. Syntax: object.line TEXT STREAM METHODS Close Method Closes a currently open TextStream file. Syntax: object.close Read Method This method reads the number of characters you specify from a Textstream file and returns them as a string. Syntax: object.read(characters) ReadAll Method This method reads the entire contents of a text file and returns it as a string. Syntax: object.readall ReadLine Method Reads a single line (excluding the newline character) from a TextStream file and returns the contents as a string. Syntax: object.readline Skip Method Causes the file pointer to skip a specified number of characters when reading a TextStream file. Can be a positive or negative number. Syntax: object.skip(characters) SkipLine Method

6 VBScript - EXCEL & WORD objexcel.visible = True objexcel.workbooks.add objexcel.cells(1, 1).Value = "Test value" OPEN a Spreadsheet Set objworkbook = objexcel.workbooks.open("c:\scripts\new_users.xls") READ an Excel Spreadsheet Set objworkbook = objexcel.workbooks.open _ ("C:\Scripts\New_users.xls") introw = 2 Do Until objexcel.cells(introw,1).value = "" Wscript.Echo "CN: " & objexcel.cells(introw, 1).Value Wscript.Echo "samaccountname: " & objexcel.cells(introw, 2).Value Wscript.Echo "GivenName: " & objexcel.cells(introw, 3).Value Wscript.Echo "LastName: " & objexcel.cells(introw, 4).Value introw = introw + 1 Loop objexcel.quit Get User Based Accounts on Excel Info Set objworkbook = objexcel.workbooks.open _ ("C:\Scripts\New_users.xls") introw = 2 Do Until objexcel.cells(introw,1).value = "" Set objou = GetObject("ou=Finance, dc=fabrikam, dc=com") Set objuser = objou.create _ ("User", "cn=" & objexcel.cells(introw, 1).Value) objuser.samaccountname = objexcel.cells(introw, 2).Value objuser.givenname = objexcel.cells(introw, 3).Value objuser.sn = objexcel.cells(introw, 4).Value objuser.accountdisabled = FALSE objuser.setinfo introw = introw + 1 Loop objexcel.quit Format A Range of Cells GET Active Row and Used Range of Cells Const xlcelltypelastcell = 11 objexcel.visible = True Set objworkbook = objexcel.workbooks.open("c:\scripts\test.xls") Set objworksheet = objworkbook.worksheets(1) objworksheet.activate Set objrange = objworksheet.usedrange objrange.specialcells(xlcelltypelastcell).activate intnewrow = objexcel.activecell.row + 1 strnewcell = "A" & intnewrow objexcel.range(strnewcell).activate ADD Format Data to Spreadsheet objexcel.visible = True objexcel.workbooks.add objexcel.cells(1, 1).Value = "Test value" objexcel.cells(1, 1).Font.Bold = TRUE objexcel.cells(1, 1).Font.Size = 24 objexcel.cells(1, 1).Font.ColorIndex = 3 Add Data To Worksheet objexcel.visible = True objexcel.workbooks.add objexcel.cells(1, 1).Value = "Name" objexcel.cells(1, 1).Font.Bold = TRUE objexcel.cells(1, 1).Interior.ColorIndex = 30 objexcel.cells(1, 1).Font.ColorIndex = 2 objexcel.cells(2, 1).Value = "Test value 1" objexcel.cells(3, 1).Value = "Test value 2" objexcel.cells(4, 1).Value = "Tets value 3" objexcel.cells(5, 1).Value = "Test value 4" Set objrange = objexcel.range("a1","a5") objrange.font.size = 14 Set objrange = objexcel.range("a2","a5") objrange.interior.colorindex = 36 Set objrange = objexcel.activecell.entirecolumn objrange.autofit() List Service Data in Excel objexcel.visible = True objexcel.workbooks.add x = 1 strcomputer = "." Set objwmiservice = GetObject _ ("winmgmts:\\" & strcomputer & "\root\cimv2") Set colservices = objwmiservice.execquery _ ("Select * From Win32_Service")

7 For Each objservice in colservices objexcel.cells(x, 1) = objservice.name objexcel.cells(x, 2) = objservice.state x = x + 1 AUTO RUN Excel Macro Sub auto1() Dim objxl As Object, x On Error Resume Set objxl = CreateObject("Excel.Application") With objxl.application.visible = True 'Open the Workbook.Workbooks.Open "C:\Documents and Settings\admin\Desktop\TEST\test.xlsx" 'Include CARMA in menu, run AutoOpen.ActiveWorkbook.RunAutoMacros xlautoopen x =.Run("AccountsViewEngine", 0) End With Set objxl = Nothing EXCEL EXAMPLE Dim objxl Set objxl = WScript.CreateObject("Excel.Application") objxl.visible = TRUE objxl.workbooks.add objxl.columns(1).columnwidth = 20 objxl.columns(2).columnwidth = 30 objxl.columns(3).columnwidth = 40 objxl.cells(1, 1).Value = "Property Name" objxl.cells(1, 2).Value = "Value" objxl.cells(1, 3).Value = "Description" objxl.range("a1:c1").select objxl.selection.font.bold = True objxl.selection.interior.colorindex = 1 objxl.selection.interior.pattern = 1 'xlsolid objxl.selection.font.colorindex = 2 objxl.columns("b:b").select objxl.selection.horizontalalignment = &hffffefdd ' xlleft Dim intindex intindex = 2 Sub Show(strName, strvalue, strdesc) objxl.cells(intindex, 1).Value = strname objxl.cells(intindex, 2).Value = strvalue objxl.cells(intindex, 3).Value = strdesc intindex = intindex + 1 objxl.cells(intindex, 1).Select ' Show WScript properties Call Show("Name", WScript.Name, "Application Friendly Name") Call Show("Version", WScript.Version, "Application Version") Call Show("Path", WScript.Path, "Application Context: Path Only") Call Show("Interactive", WScript.Interactive, "State of Interactive Mode") ' Show command line arguments. ' Dim colargs Set colargs = WScript.Arguments Call Show("Arguments.Count", colargs.count, "Number of command line arguments") For i = 0 to colargs.count - 1 objxl.cells(intindex, 1).Value = "Arguments(" & i & ")" objxl.cells(intindex, 2).Value = colargs(i) intindex = intindex + 1 objxl.cells(intindex, 1).Select Sub Welcome() Dim intdoit intdoit = MsgBox(L_Welcome_MsgBox_Message_Text, _ vbokcancel + vbinformation, _ L_Welcome_MsgBox_Title_Text ) If intdoit = vbcancel Then WScript.Quit EXCEL EXAMPLE 2: Write To and Format Excel Option Explicit Dim objuser, strexcelpath, objexcel, objsheet, k, objgroup ' User object whose group membership will be documented in the ' spreadsheet. Set objuser = GetObject("LDAP://cn=User2,ou=Sales,dc=MyDomain,dc=com") ' Spreadsheet file to be created. strexcelpath = "c:\myfolder\usergroup.xls" ' Bind to Excel object. On Error Resume If (Err.Number <> 0) Then On Error GoTo 0 Wscript.Echo "Excel application not found." Wscript.Quit On Error GoTo 0 ' Create a new workbook. objexcel.workbooks.add ' Bind to worksheet. Set objsheet = objexcel.activeworkbook.worksheets(1) objsheet.name = "User Groups" ' Populate spreadsheet cells with user attributes. objsheet.cells(1, 1).Value = "User Common Name" objsheet.cells(2, 1).Value = "samaccountname" ' Enumerate groups and add group names to spreadsheet. k = 5

8 For Each objgroup In objuser.groups objsheet.cells(k, 2).Value = objgroup.samaccountname k = k + 1 ' Format the spreadsheet. objsheet.range("a1:a4").font.bold = True objsheet.select objsheet.range("b5").select objexcel.activewindow.freezepanes = True objexcel.columns(1).columnwidth = 20 objexcel.columns(2).columnwidth = 30 ' Save the spreadsheet and close the workbook. objexcel.activeworkbook.saveas strexcelpath objexcel.activeworkbook.close ' Quit Excel. objexcel.application.quit ' Clean Up Set objuser = Nothing Set objgroup = Nothing Set objsheet = Nothing Set objexcel = Nothing Wscript.Echo "Done" BASICS --New workbook Workbook Object: Workbooks(1).Activate Workbooks("Cogs.xls").Worksheets("Sheet1").Activate ActiveWorkbook.Colors = Workbooks("BOOK2.XLS").Colors Worksheets Object: Worksheets(1).Visible = False --setting Focus --Activate Method applies to: Chart, Worksheet, Pane, Window & Workbook Workbook("test.xlsx").Activate or ActiveWindow.Activate --Add fields method object.addfields(rowfields, ColumnFields, PageFields, AddToTable, AppendField) CopyCutMode Application.CutCopyMode = True False Not in Cut or Copy mode xlcopy In Copy mode xlcut In Cut mode Sub AddNew() Set NewBook = Workbooks.Add With NewBook.Title = "All Sales".Subject = "Sales".SaveAs Filename:="Allsales.xls" End With False True Cancels Cut or Copy mode and removes the moving border. Cancels Cut or Copy mode and removes the moving border. --Open a workbook Workbooks.Open("C:\MyFolder\MyBook.xls") Sub FirstOne() Worksheets(1).Activate To get data: a = Range("B2").Value or a = Cells(2,2).Value To set data: Range("C2").Value = r1 or Cells(3,2).Value = r1 Enter string data: Range("M2") = "Int. = " Cells(15,2) = "Int. = "

9 Const wdformattext = 2 objword.visible = TRUE Set objdoc = objword.documents.open("c:\scripts\mylog.doc") objdoc.saveas "c:\scripts\mylog.txt", wdformattext objword.quit Create a New Word Document Demonstration script that creates and displays a new Microsoft Word document. objword.visible = True Set objdoc = objword.documents.add() Open and Print a Word Document Set objdoc = objword.documents.open("c:\scripts\inventory.doc") objdoc.printout() objword.quit Using WSH in WORD Create and Save a Word Document Demonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the document as C:\Scripts\Word\Testdoc.doc. objword.caption = "Test Caption" objword.visible = True Set objdoc = objword.documents.add() Set objselection = objword.selection objselection.font.name = "Arial" objselection.font.size = "18" objselection.typetext "Network Adapter Report" objselection.font.size = "14" objselection.typetext "" & Date() objselection.font.size = "10" strcomputer = "." Set objwmiservice = GetObject("winmgmts:\\" & strcomputer & "\root\cimv2") Set colitems = objwmiservice.execquery _ ("Select * from Win32_NetworkAdapterConfiguration") objdoc.saveas("c:\scripts\word\testdoc.doc") objword.quit Add Formatted Text to a Word Document Demonstration script that displays formatted data in a Microsoft Word document. objword.visible = True Set objdoc = objword.documents.add() Set objselection = objword.selection objselection.font.name = "Arial" objselection.font.size = "18" objselection.typetext "Network Adapter Report" objselection.font.size = "14" objselection.typetext "" & Date() Add a Formatted Table to a Word Document objword.visible = True Set objdoc = objword.documents.add() Set objrange = objdoc.range() objdoc.tables.add objrange,1,3 Set objtable = objdoc.tables(1) x=1 strcomputer = "." Set objwmiservice = _ GetObject("winmgmts:\\" & strcomputer & "\root\cimv2") Set colitems = objwmiservice.execquery("select * from Win32_Service") For Each objitem in colitems If x > 1 Then objtable.rows.add() objtable.cell(x, 1).Range.Font.Bold = True objtable.cell(x, 1).Range.Text = objitem.name objtable.cell(x, 2).Range.text = objitem.displayname objtable.cell(x, 3).Range.text = objitem.state x = x + 1 Append Text to a Word Document Const END_OF_STORY = 6 Const MOVE_SELECTION = 0 objword.visible = True Set objdoc = objword.documents.open("c:\scripts\word\testdoc.doc") Set objselection = objword.selection objselection.endkey END_OF_STORY, MOVE_SELECTION objselection.font.size = "14" objselection.typetext "" & Date()

10 objselection.font.size = "10" DATABASE CONNECTION [odbcselect.vbs] Dim OdbcDSN Dim connect, sql, resultset OdbcDSN = "DSN=Sybase Demo DB V6 DWB;UID=dba;PWD=sql" Set connect = CreateObject("ADODB.Connection") connect.open OdbcDSN sql="select emp_fname, emp_lname FROM employee" Set resultset = connect.execute(sql) On Error Resume resultset.movefirst Do While Not resultset.eof WScript.Echo resultset("emp_lname") & ", " & resultset("emp_fname") resultset.move Loop resultset.close connect.close Set connect = Nothing WSCRIPT.QUIT(0) BASIS OF CONNECTION 'Create connection object set cn = Server.CreateObject("ADODB.Connection") cn = new ADODB.Connection 'Setting the DataSource strcs = "Driver={SQL Server}; Server=myserver; Database=mydb; UID=sa; PWD=password" Set cn = Server.CreateObject("ADODB.Connection") Set rs = Server.CreateObject("ADODB.Recordset") cn.connectionstring = Application("DB_CONN") cn.open end if ' Method to destroy objects created. Public Sub Destroy if isobject(rs) = true then rs.close Set rs = nothing end if if isobject(cn) = true then cn.close Set cn = nothing end if End Class NOW CALL IT Set db = new DataBaseFunction db.init Set db.rs = db.cn.execute("select * FROM tbluser WHERE UserID = 10") Response.Write(db.rs.Fields(1).value) db.destroy Set db = Nothing 'Setting the Connection String cn.connectionstring = strcs 'Open It cn.open USING A VBS CLASS TO CONNECT Class DataBaseFunctions ' Declare variables to have public scope. Public rs Public cn 'Method to initialize connection to database Private Sub Init if isobject(cn) = false then

Understanding the MsgBox command in Visual Basic

Understanding the MsgBox command in Visual Basic Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in

More information

Excel & Visual Basic for Applications (VBA)

Excel & Visual Basic for Applications (VBA) Class meeting #18 Monday, Oct. 26 th GEEN 1300 Introduction to Engineering Computing Excel & Visual Basic for Applications (VBA) user interfaces o on-sheet buttons o InputBox and MsgBox functions o userforms

More information

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is

An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

4 Working with WSH objects

4 Working with WSH objects 4 Working with WSH objects In the preceding chapter I have discussed a few basics of script programming. We have also used a few objects, methods and properties. In this chapter I would like to extend

More information

Overview. Program Start VB SCRIPT SIGNER. IT Services

Overview. Program Start VB SCRIPT SIGNER. IT Services Overview It is sometimes much easier (and easier to maintain) to use a Visual Basic Script on Windows to perform system functions rather than coding those functions in C++ (WMI is a good example of this).

More information

3 IN THIS CHAPTER. Understanding Program Variables

3 IN THIS CHAPTER. Understanding Program Variables Understanding Program Variables Your VBA procedures often need to store temporary values for use in statements and calculations that come later in the code. For example, you might want to store values

More information

Chapter 14 Sequential Files

Chapter 14 Sequential Files CHAPTER 14 SEQUENTIAL FILES 1 Chapter 14 Sequential Files (Main Page) 14.1 DirListBox, FileListBox, and DriveListBox toolbox icons. 14.2 Some DirListBox, FileListBox, and DriveListBox common properties

More information

Windows Batch file to Easily Convert MagicLantern.RAW files into CinemaDNG Posted by idealsceneprod - 09 Nov :17

Windows Batch file to Easily Convert MagicLantern.RAW files into CinemaDNG Posted by idealsceneprod - 09 Nov :17 Windows Batch file to Easily Convert MagicLantern.RAW files into Posted by idealsceneprod - 09 Nov 2013 06:17 I just wrote up a quick little batch file (Windows/DOS) onto which you can drag your.raw files,

More information

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth

Excel Macro Record and VBA Editor. Presented by Wayne Wilmeth Excel Macro Record and VBA Editor Presented by Wayne Wilmeth 1 What Is a Macro? Automates Repetitive Tasks Written in Visual Basic for Applications (VBA) Code Macro Recorder VBA Editor (Alt + F11) 2 Executing

More information

VBA. VBA at a glance. Lecture 61

VBA. VBA at a glance. Lecture 61 VBA VBA at a glance Lecture 61 1 Activating VBA within SOLIDWORKS Lecture 6 2 VBA Sub main() Function Declaration Dim A, B, C, D, E As Double Dim Message, Title, Default Message = "A : " ' Set prompt.

More information

Chapter 1. Block Diagram. Text .. 1

Chapter 1. Block Diagram. Text .. 1 Chapter 1 ก Visual Basic Scilab ก ก Visual Basic Scilab ก ก (Temporary File) ก ก ก ก ก ก Visual Basic ก (Interface) ก Scilab Text File ก Visual Basic ก ก ก ก Block Diagram ก ก Visual Basic ก Scilab ก.sce

More information

Compact Disc 1. Send us your feedback «Previous Next» Microsoft Windows 2000 Scripting Guide

Compact Disc 1. Send us your feedback «Previous Next» Microsoft Windows 2000 Scripting Guide Compact Disc 1 Introduction Welcome to the. As computers and computer networks continue to grow larger and more complex, system administrators continue to face new challenges. Not all that long ago, system

More information

Microsoft System Center Configuration Manager 2012 Dell Factory Integration

Microsoft System Center Configuration Manager 2012 Dell Factory Integration Microsoft System Center Manager 2012 Dell Factory Integration User Guide January 2017 to ConfigMgr 2012 OSD in Dell Factories Administrators of Microsoft System Center Manager 2012 (referenced as Manager

More information

Script Host 2.0 Developer's Guide

Script Host 2.0 Developer's Guide _ Microsoft icrosoft Script Host 2.0 Developer's Guide Günter Born Introduction xv parti Introduction to the World of Script Programming chapter i Introduction to Windows Script Host 3 WHAT YOU CAN DO

More information

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis.

MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam. 1. Spreadsheets are known as the of business analysis. Section 1 Multiple Choice MgtOp 470 Business Modeling with Spreadsheets Sample Midterm Exam 1. Spreadsheets are known as the of business analysis. A. German motor car B. Mexican jumping bean C. Swiss army

More information

#44. Accelerate Skype Using Your Keyboard Make Skype fly, by speeding up common tasks with key sequences and hotkeys.

#44. Accelerate Skype Using Your Keyboard Make Skype fly, by speeding up common tasks with key sequences and hotkeys. Accelerate Skype Using Your Keyboard #44 H A C K #44 Hack Accelerate Skype Using Your Keyboard Make Skype fly, by speeding up common tasks with key sequences and hotkeys. #44 Works with: Windows version

More information

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and

VBA Collections A Group of Similar Objects that Share Common Properties, Methods and VBA AND MACROS VBA is a major division of the stand-alone Visual Basic programming language. It is integrated into Microsoft Office applications. It is the macro language of Microsoft Office Suite. Previously

More information

Respond to Data Entry Events

Respond to Data Entry Events Respond to Data Entry Events Callahan Chapter 4 Understanding Form and Control Events Developer s Goal make data entry easy, fast, complete, accurate Many form- and control-level events occur as user works

More information

MICROSOFT EXCEL KEYBOARD SHORCUTS

MICROSOFT EXCEL KEYBOARD SHORCUTS MICROSOFT EXCEL KEYBOARD SHORCUTS F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end F3 Displays the (Insert > Name > Paste) dialog

More information

The ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database.

The ADO Connection Object is used to create an open connection to a data source. Through this connection, you can access and manipulate a database. Unit 5: Accessing Databases with ASP and ADO Active Database Object(ADO) ADO represents a collection of objects that, via ASP, you can easily manipulate to gain incredible control over the information

More information

Download the files from you will use these files to finish the following exercises.

Download the files from  you will use these files to finish the following exercises. Exercise 6 Download the files from http://www.peter-lo.com/teaching/x4-xt-cdp-0071-a/source6.zip, you will use these files to finish the following exercises. 1. This exercise will guide you how to create

More information

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide

VBA Excel 2013/2016. VBA Visual Basic for Applications. Learner Guide VBA Visual Basic for Applications Learner Guide 1 Table of Contents SECTION 1 WORKING WITH MACROS...5 WORKING WITH MACROS...6 About Excel macros...6 Opening Excel (using Windows 7 or 10)...6 Recognizing

More information

Ms Excel Vba Continue Loop Through Range Of

Ms Excel Vba Continue Loop Through Range Of Ms Excel Vba Continue Loop Through Range Of Rows Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d.

3. (1.0 point) To quickly switch to the Visual Basic Editor, press on your keyboard. a. Esc + F1 b. Ctrl + F7 c. Alt + F11 d. Excel Tutorial 12 1. (1.0 point) Excel macros are written in the programming language. a. Perl b. JavaScript c. HTML d. VBA 2. (1.0 point) To edit a VBA macro, you need to use the Visual Basic. a. Manager

More information

The Windows Scripting Host comes with a secret script extension, called

The Windows Scripting Host comes with a secret script extension, called Chapter 7 Accessing the File System In This Chapter Access drives, folders, and individual files Peek into any file, and changing file contents at will Determine free space on drives, and overcome the

More information

Debugging Runtime Scripts in Operations Manager and Essentials 2007 The third installment in the System Center Forum Scripting Series

Debugging Runtime Scripts in Operations Manager and Essentials 2007 The third installment in the System Center Forum Scripting Series Debugging Runtime Scripts in Operations Manager and Essentials 2007 The third installment in the System Center Forum Scripting Series Author: Neale Brown, MCSE (Messaging) Contributor, System Center Forum

More information

Use Do Until to break links

Use Do Until to break links Excel magazines, seminars, add-ons, support and bespoke Excel Systems Edition 0 January 00 IN THIS EDITION Use Do Until to break links Edition 0 Jan 00 >>Files: BreakLinks.xls, AusData.xls, NZData.xls

More information

BASIC MACROINSTRUCTIONS (MACROS)

BASIC MACROINSTRUCTIONS (MACROS) MS office offers a functionality of building complex actions and quasi-programs by means of a special scripting language called VBA (Visual Basic for Applications). In this lab, you will learn how to use

More information

IT ACADEMY LESSON PLAN

IT ACADEMY LESSON PLAN IT Academy Program 10 IT ACADEMY LESSON PLAN Microsoft Excel Lesson 1 Turn potential into success Lesson 1: Understanding Microsoft Office Excel 2010 Learning Objectives Lesson Introduction Creating a

More information

1) Identify the recording mode, by which you can record the non-standard object in QTP

1) Identify the recording mode, by which you can record the non-standard object in QTP 1) Identify the recording mode, by which you can record the non-standard object in QTP A) Standard recording B) Analog recording C) Low level recording D) None 2) By default, how many no of tables would

More information

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS...

I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... EXCEL 2010 BASICS Microsoft Excel I OFFICE TAB... 1 RIBBONS & GROUPS... 2 OTHER SCREEN PARTS... 4 APPLICATION SPECIFICATIONS... 5 THE BASICS... 6 The Mouse... 6 What Are Worksheets?... 6 What is a Workbook?...

More information

Dell OpenManage Essentials v2.0 Support for Dell Client Devices

Dell OpenManage Essentials v2.0 Support for Dell Client Devices Dell OpenManage Essentials v2.0 Support for Dell Client Devices This Dell technical white paper provides the required information about Dell client devices (OptiPlex, Precision, Latitude, and Venue 11

More information

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook Excel 2016 Main Screen Fundamental Concepts General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Ctrl + O Ctrl + N Ctrl + S Ctrl + P Ctrl + W Help Run Spell Check Calculate

More information

Next Presentation: Presenter: Arthur Tabachneck

Next Presentation: Presenter: Arthur Tabachneck Next Presentation: Presenter: Arthur Tabachneck Art holds a PhD from Michigan State University, has been a SAS user since 1974, is president of the Toronto Area SAS Society and has received such recognitions

More information

Order Matic: May I take your order?

Order Matic: May I take your order? Order Matic: May I take your order? This is an awesome application. There is so much to learn here. This application will work in Microsoft Excel 2003 / 2007 / 2010 / 2013. I have had requests for an application

More information

Alternatives To Custom Dialog Box

Alternatives To Custom Dialog Box Alternatives To Custom Dialog Box Contents VBA Input Box Syntax & Function The Excel InputBox method Syntax The VBA MsgBox Function The Excel GetOpenFilename Method The Excel GetSaveAsFilename Method Reference

More information

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed

Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed Excel Macro Runtime Error Code 1004 Saveas Of Object _workbook Failed The code that follows has been courtesy of this forum and the extensive help i received from everyone. But after an Runtime Error '1004'

More information

Windows Script Host Fundamentals

Windows Script Host Fundamentals O N E Windows Script Host Fundamentals 1 The Windows Script Host, or WSH for short, is one of the most powerful and useful parts of the Windows operating system. Strangely enough, it is also one of least

More information

Lesson 2. Using the Macro Recorder

Lesson 2. Using the Macro Recorder Lesson 2. Using the Macro Recorder When the recorder is activated, everything that you do will be recorded as a Macro. When the Macro is run, everything that you recorded will be played back exactly as

More information

OBJECT ORIENTED PROGRAMMING: VBA

OBJECT ORIENTED PROGRAMMING: VBA Agenda for Today VBA and Macro creation (using Excel) DSC340 Object-Oriented Programming Creating Macros with VBA Mike Pangburn What is O-O programming? OBJECT ORIENTED PROGRAMMING: VBA A programming style

More information

Ms Excel Vba Continue Loop Through Worksheets By Name

Ms Excel Vba Continue Loop Through Worksheets By Name Ms Excel Vba Continue Loop Through Worksheets By Name exceltip.com/files-workbook-and-worksheets-in-vba/determine-if- Checks if the Sheet name is matching the Sheet name passed from the main macro. It

More information

Access VBA programming

Access VBA programming Access VBA programming TUTOR: Andy Sekiewicz MOODLE: http://moodle.city.ac.uk/ WEB: www.staff.city.ac.uk/~csathfc/acvba The DoCmd object The DoCmd object is used to code a lot of the bread and butter operations

More information

Deploying Dell Open Manage Server Administrator from IT Assistant 7.0

Deploying Dell Open Manage Server Administrator from IT Assistant 7.0 Deploying Dell Open Manage Server Administrator from IT Assistant 7.0 Enterprise Systems Group (ESG) Dell OpenManage Systems Management Dell White Paper By Annapurna Dasari Annapurna_Dasari@dell.com May

More information

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007)

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 2 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) TABLE OF CONTENTS CHAPTER 1: GETTING STARTED... 5 THE EXCEL ENVIRONMENT...

More information

Password Protect an Access Database

Password Protect an Access Database Access a Password Protected Microsoft Access Database from within Visual Basic 6 Have you ever wanted to password protect an Access Database that is a Data Store (a repository of Data) used in one of your

More information

Using OLE in SAS/AF Software

Using OLE in SAS/AF Software 187 CHAPTER 9 Using OLE in SAS/AF Software About OLE 188 SAS/AF Catalog Compatibility 188 Inserting an OLE Object in a FRAME Entry 188 Inserting an OLE Object 189 Pasting an OLE Object from the Clipboard

More information

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet

Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet Lab 7 Macros, Modules, Data Access Pages and Internet Summary Macros: How to Create and Run Modules vs. Macros 1. Jumping to Internet 1. Macros 1.1 What is a macro? A macro is a set of one or more actions

More information

12 BASICS OF MS-EXCEL

12 BASICS OF MS-EXCEL 12 BASICS OF MS-EXCEL 12.1 INTRODUCTION MS-Excel 2000 is a Windows based application package. It is quite useful in entering, editing, analysis and storing of data. Arithmetic operations with numerical

More information

Argument 1 = A number (0, 1, 2, 3) that will be used as the exit code the script will exit with (this is how Nagios determines the status)

Argument 1 = A number (0, 1, 2, 3) that will be used as the exit code the script will exit with (this is how Nagios determines the status) Nagios XI - Using Scripts / Plugins With NSClient++ Article Number: 58 Rating: Unrated Last Updated: Wed, Jul 19, 017 at 11:59 PM O ve r vie w This KB article explains how to use external scripts / plugins

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide

Copyright. Trademarks Attachmate Corporation. All rights reserved. USA Patents Pending. WRQ ReflectionVisual Basic User Guide PROGRAMMING WITH REFLECTION: VISUAL BASIC USER GUIDE WINDOWS XP WINDOWS 2000 WINDOWS SERVER 2003 WINDOWS 2000 SERVER WINDOWS TERMINAL SERVER CITRIX METAFRAME CITRIX METRAFRAME XP ENGLISH Copyright 1994-2006

More information

Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:...

Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:... Highline Excel 2016 Class 10: Data Validation Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:... 4 Page 1 of

More information

EXPERT TRAINING PROGRAM [QTP/ALM]

EXPERT TRAINING PROGRAM [QTP/ALM] EXPERT TRAINING PROGRAM [QTP/ALM] COURSE OVERVIEW Automation and Automation Concepts Introduction to Test Automation Test Automation Truths or Myths Where to use Test Automation and Where Not Test Automation

More information

Web Client for Windows

Web Client for Windows Web Client for Windows Version 4.0/4.1/4.2 Updated: March 2017 ITC Systems, Inc One Annabel Lane, Suite 105 San Ramon, CA 94583 (925)790-0070 2017 ITC Systems, Inc. All rights reserved. Windows Web Client

More information

STEP Household Questionnaire. Guidelines for Data Processing

STEP Household Questionnaire. Guidelines for Data Processing STEP Household Questionnaire Guidelines for Data Processing This Version: December 11, 2012 Table of Contents 1. Data Entry Process and Timing... 3 2. Data Files Structure... 4 3. Consistency Checks...

More information

Jennifer Clegg and Carol Rigsbee, SAS Institute Inc., Cary, NC

Jennifer Clegg and Carol Rigsbee, SAS Institute Inc., Cary, NC OLE and the SAS System for Windows Release 6.12 Jennifer Clegg and Carol Rigsbee, SAS Institute Inc., Cary, NC ABSTRACT This paper describes the OLE support within the SAS System for Windows Release 6.12.

More information

Excel has a powerful automation feature that lets you automate processes that you need to do repeatedly.

Excel has a powerful automation feature that lets you automate processes that you need to do repeatedly. Professor Shoemaker There are times in Excel when you have a process that requires several or many steps and that you need to do repeatedly. Excel has a powerful automation feature that lets you automate

More information

Ms Excel Vba Continue Loop Through Columns Range

Ms Excel Vba Continue Loop Through Columns Range Ms Excel Vba Continue Loop Through Columns Range Learn how to make your VBA code dynamic by coding in a way that allows your 5 Different Ways to Find The Last Row or Last Column Using VBA In Microsoft

More information

Chapter 5. window, so the built-in communication paths use the MsgBox and Popup functions.

Chapter 5. window, so the built-in communication paths use the MsgBox and Popup functions. Chapter 5 Using Internet Explorer as the Output Window In This Chapter Find out the secret Internet Explorer scripting commands Open and size the IE window by script Write text into the IE window Change

More information

Universitas Sumatera Utara

Universitas Sumatera Utara Option Explicit DefLng A-Z '--------------------------------------------------------------------------------------------- #Const Test = False '---------------------------------------------------------------------------------------------

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 1 Databases and Database Objects: An Introduction Objectives Describe the features of the Access window Create a database Create tables in Datasheet and Design views Add records

More information

CIST 304. Week 7: Chapters 15 & 16 VB with other applications and MS Access

CIST 304. Week 7: Chapters 15 & 16 VB with other applications and MS Access CIST 304 Week 7: Chapters 15 & 16 VB with other applications and MS Access Visual Basic Interoperability VB can be used across applications VB interoperability with other MS Office applications (Word,

More information

LUSAS Programmable Interface (LPI) Customisation and Automation Guide. LUSAS Version 15.2 : Issue 1

LUSAS Programmable Interface (LPI) Customisation and Automation Guide. LUSAS Version 15.2 : Issue 1 LUSAS Programmable Interface (LPI) Customisation and Automation Guide LUSAS Version 15.2 : Issue 1 LUSAS Forge House, 66 High Street, Kingston upon Thames, Surrey, KT1 1HN, United Kingdom Tel: +44 (0)20

More information

Advanced Excel Macros : Data Validation/Analysis : OneDrive

Advanced Excel Macros : Data Validation/Analysis : OneDrive Advanced Excel Macros : Data Validation/Analysis : OneDrive Macros Macros in Excel are in short, a recording of keystrokes. Beyond simple recording, you can use macros to automate tasks that you will use

More information

Programming with the Peltier Tech Utility

Programming with the Peltier Tech Utility Programming with the Peltier Tech Utility The Peltier Tech Utility was designed so that much of its functionality is available via VBA as well as through the Excel user interface. This document explains

More information

Controlling Macro Flow

Controlling Macro Flow 30 Controlling Macro Flow Control Statement Overview, 30-2 IF, ELSEIF, ELSE,, 30-2 DO,, 30-3 WHILE, ENDWHILE, 30-4 NEXT, 30-5 BREAK, 30-5 GOTO, MLABEL, 30-6 Invoking Macros from Within Macros, 30-7 CALL,

More information

WORKING WITH WINDOWS SHELL

WORKING WITH WINDOWS SHELL Chapter 11 Scripting Quicktest Professional Page 1 WORKING WITH WINDOWS SHELL32... 3 MANAGING DISK QUOTAS ON THE NTFS FILE SYSTEM... 4 MICROSOFT.DIDISKQUOTAUSER OBJECT... 4 DIDiskQuotaUser.AccountContainerName

More information

Excel. module. Lesson 1 Create a Worksheet Lesson 2 Create and Revise. Lesson 3 Edit and Format

Excel. module. Lesson 1 Create a Worksheet Lesson 2 Create and Revise. Lesson 3 Edit and Format module 2 Excel Lesson 1 Create a Worksheet Lesson 2 Create and Revise Formulas Lesson 3 Edit and Format Worksheets Lesson 4 Print Worksheets Lesson 5 Modify Workbooks Lesson 6 Create and Modify Charts

More information

Wordman s Production Corner

Wordman s Production Corner Wordman s Production Corner By Dick Eassom, AF.APMP Three Excel Tricks...Just for a Change Three Problems One of my colleagues has the good fortune to have to manage marketing mailing lists. Since the

More information

Learn Visual Basic 6.0

Learn Visual Basic 6.0 6-1 Learn Visual Basic 60 6 Error-Handling, Debugging and File Input/Output Review and Preview In this class, we expand on our Visual Basic knowledge from past classes and examine a few new topics We first

More information

'This library is to be used in the context of data management of IoT devices

'This library is to be used in the context of data management of IoT devices Annex A: Full Code '' 'Library created by Pol Sarmiento Lozano @TDdeviceAPI ' 'This library is to be used in the context of data management of IoT devices ' 'This library relates to the URL requests available

More information

Microsoft Excel 2010 Tutorial

Microsoft Excel 2010 Tutorial 1 Microsoft Excel 2010 Tutorial Excel is a spreadsheet program in the Microsoft Office system. You can use Excel to create and format workbooks (a collection of spreadsheets) in order to analyze data and

More information

Introduction to Microsoft Excel 2007

Introduction to Microsoft Excel 2007 Introduction to Microsoft Excel 2007 Microsoft Excel is a very powerful tool for you to use for numeric computations and analysis. Excel can also function as a simple database but that is another class.

More information

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi MICROSOFT EXCEL Prepared By: Amna Alshurooqi Hajar Alshurooqi Lesson 1 BIS 202 1. INTRODUCTION Microsoft Excel is a spreadsheet application used to perform financial calculations, statistical analysis,

More information

Adevice driver is a tiny chunk of programming code that

Adevice driver is a tiny chunk of programming code that Device Driver Tweaks CHAPTER W1 Adevice driver is a tiny chunk of programming code that serves as a kind of middleman between Windows and a particular device. For example, if Windows needs a device to

More information

INTRODUCTION ACCESS 2010

INTRODUCTION ACCESS 2010 INTRODUCTION ACCESS 2010 Overview of Ms. Access 2010 Microsoft Access is a computer application used to create and manage databases. Access Databases can store any type of information: numbers, text, and

More information

Excel Tips for Compensation Practitioners Weeks 9-12 Working with Lookup Formulae

Excel Tips for Compensation Practitioners Weeks 9-12 Working with Lookup Formulae Excel Tips for Compensation Practitioners Weeks 9-12 Working with Lookup Formulae Week 9 Using lookup functions Microsoft Excel is essentially a spreadsheet tool, while Microsoft Access is a database tool.

More information

1. Macro. 1.1 Overview. 1.2 Enable Developer Tab in Ribbon

1. Macro. 1.1 Overview. 1.2 Enable Developer Tab in Ribbon 1. Macro 1.1 Overview If you perform a task repeatedly in Microsoft Excel, you can automate the task with a macro. A macro is a series of commands and functions that are stored in a Microsoft Visual Basic

More information

Business Insight Authoring

Business Insight Authoring Business Insight Authoring Getting Started Guide ImageNow Version: 6.7.x Written by: Product Documentation, R&D Date: August 2016 2014 Perceptive Software. All rights reserved CaptureNow, ImageNow, Interact,

More information

Manual Calculation Definition Excel Shortcut Keyboard

Manual Calculation Definition Excel Shortcut Keyboard Manual Calculation Definition Excel Shortcut Keyboard Pressing Esc on your keyboard will allow you to exit Excel formula editing. If you have set your Excel formulas to calculate manually, and want to

More information

Excel Tips for Compensation Practitioners Weeks Pivot Tables

Excel Tips for Compensation Practitioners Weeks Pivot Tables Excel Tips for Compensation Practitioners Weeks 23-28 Pivot Tables Week 23 Creating a Pivot Table Pivot tables are one of the most amazing and powerful tools in Excel, but many users do not know how to

More information

User Environment Variables in App-V 5.0 with SP1, SP2 and SP2 Hotfix 4

User Environment Variables in App-V 5.0 with SP1, SP2 and SP2 Hotfix 4 User Environment Variables in App-V 5.0 with SP1, SP2 and SP2 Hotfix 4 Dan Gough wrote an excellent article named: User Environment Variables in App-V 5 Scripts. To summarize: it is about the fact that

More information

Beginning Excel for Windows

Beginning Excel for Windows Beginning Excel for Windows Version: 2002 Academic Computing Support Information Technology Services Tennessee Technological University September 2003 1. Opening Excel for Windows and Setting the Toolbars

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 1 Databases and Database Objects: An Introduction Objectives Design a database to satisfy a collection of requirements Describe the features of the Access window Create a

More information

A guide to writing Excel formulas and VBA macros. Mark McIlroy

A guide to writing Excel formulas and VBA macros. Mark McIlroy A guide to writing Excel formulas and VBA macros Mark McIlroy Other books by the author The Wise Investor Introduction to the Stockmarket SQL Essentials Introduction to Computer Science Starting a Small

More information

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan DATA 301 Introduction to Data Analytics Microsoft Excel VBA Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Microsoft Excel Visual Basic

More information

Excel 2013 Intermediate

Excel 2013 Intermediate Instructor s Excel 2013 Tutorial 2 - Charts Excel 2013 Intermediate 103-124 Unit 2 - Charts Quick Links Chart Concepts Page EX197 EX199 EX200 Selecting Source Data Pages EX198 EX234 EX237 Creating a Chart

More information

FileLoader for SharePoint

FileLoader for SharePoint Administrator s Guide FileLoader for SharePoint v. 2.0 Last Updated 6 September 2012 Contents Preface 3 FileLoader Users... 3 Getting Started with FileLoader 4 Configuring Connections to SharePoint 8

More information

Website Pros Database Component. v

Website Pros Database Component. v Website Pros Database Component v1.00.02 Table Of Contents Before Getting Started... 2 Using the Database Component... 5 How the Database Component Works... 5 Adding the Toolbar... 6 Adding Component

More information

How To Do It: Software LabelDirect

How To Do It: Software LabelDirect How To Do It: Software LabelDirect NOTE: These instructions are all based on LabelDirect version.3. Later versions of the software may differ in detail. Design a die cut label Q. How do I design a die

More information

239 Excel Keyboard Shortcuts

239 Excel Keyboard Shortcuts 239 Excel Keyboard Shortcuts WORK FASTER AND MORE EFFICIENTLY WITH THESE CLEARLY ILLUSTRATED EXCEL SHORTCUTS. My Online Training Hub https://www.myonlinetraininghub.com/ Below is a huge list of Excel keyboard

More information

Informix Excel Reports Technical Guide

Informix Excel Reports Technical Guide Informix Excel Reports Technical Guide Index Revision History... 1 Introduction... 1 Overview... 2 Scheduled Jobs... 3 HTML Pages... 3 JavaScript... 3 Auto-Refreshing Workbooks... 4 Parameterised Web Queries...

More information

Indian Institute of Technology Kharagpur. PERL Part II. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Indian Institute of Technology Kharagpur. PERL Part II. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Indian Institute of Technology Kharagpur PERL Part II Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Kharagpur, INDIA Lecture 22: PERL Part II On completion, the student will be able

More information

Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks

Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks Microsoft Excel Office 2016/2013/2010/2007 Tips and Tricks In Office 2007, the OFFICE BUTTON is the symbol at the top left of the screen. 1 Enter Fractions That Will Display And Calculate Properly a. Type

More information

Technical Strategy and Solutions BASE PROFESSIONAL. V e r s i o n 1. 0 P a g e 1

Technical Strategy and Solutions BASE PROFESSIONAL. V e r s i o n 1. 0 P a g e 1 BASE PROFESSIONAL V e r s i o n 1. 0 P a g e 1 Contents 1 Overview... 3 1.1 STARTING PROFESSIONAL 3 1.1.1 Professional Window... 4 1.1.2 Menus... 6 1.2 FILE TYPES WITH PROFESSIONAL 6 1.3 PROFESSIONAL TOOLBARS

More information

Covers PowerShell v2 APPENDIXES SECOND EDITION. Bruce Payette MANNING

Covers PowerShell v2 APPENDIXES SECOND EDITION. Bruce Payette MANNING Covers PowerShell v2 APPENDIXES SECOND EDITION Bruce Payette MANNING Windows PowerShell in Action Second Edition by Bruce Payette APPENDIXES Copyright 2011 Manning Publications brief contents Part 1 Learning

More information

New-ADUser -Name -SAMAccountName - GivenName -Surname -DisplayName -UserPrincipalName - Path -ProfilePath

More information

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices. MySQL for Excel Abstract This is the MySQL for Excel Reference Manual. It documents MySQL for Excel 1.3 through 1.3.7. Much of the documentation also applies to the previous 1.2 series. For notes detailing

More information

IDoc Connector for XML Component (BC-FES-AIT)

IDoc Connector for XML Component (BC-FES-AIT) IDoc Connector for XML Component (BC-FES-AIT) HELP.BCFESIDOCXML Release 4.6C SAP AG Copyright Copyright 2001 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in

More information