{ WSH VBScript REFERENCE }

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

variables programming statements

variables programming statements 1 VB PROGRAMMERS GUIDE LESSON 1 File: VbGuideL1.doc Date Started: May 24, 2002 Last Update: Dec 27, 2002 ISBN: 0-9730824-9-6 Version: 0.0 INTRODUCTION TO VB PROGRAMMING VB stands for Visual Basic. Visual

More information

Programming Concepts and Skills. Arrays continued and Functions

Programming Concepts and Skills. Arrays continued and Functions Programming Concepts and Skills Arrays continued and Functions Fixed-Size vs. Dynamic Arrays A fixed-size array has a limited number of spots you can place information in. Dim strcdrack(0 to 2) As String

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

VB Script Examples. This document contains only examples. It is a live document, and is continuously being updated. Last update: March 27, 2017

VB Script Examples. This document contains only examples. It is a live document, and is continuously being updated. Last update: March 27, 2017 VB Script Examples By David Grund VBScript is a scripting language developed by Microsoft, and modeled after their Visual Basic development language. It is run within a host environment. Windows Scripting

More information

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION

MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION MICROSOFT EXCEL 2000 LEVEL 5 VBA PROGRAMMING INTRODUCTION Lesson 1 - Recording Macros Excel 2000: Level 5 (VBA Programming) Student Edition LESSON 1 - RECORDING MACROS... 4 Working with Visual Basic Applications...

More information

As an A+ Certified Professional, you will want to use the full range of

As an A+ Certified Professional, you will want to use the full range of Bonus Chapter 1: Creating Automation Scripts In This Chapter Understanding basic programming techniques Introducing batch file scripting Introducing VBScript Introducing PowerShell As an A+ Certified Professional,

More information

How to detect the CPU and OS Architecture

How to detect the CPU and OS Architecture How to detect the CPU and OS Architecture The client I am working for now, has both XP and Windows 7. XP is 32 bits and Windows 7 is 64 bits. To avoid that I have to make the packages twice, I make both

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

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

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources

Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Creating Macros David Giusto, Technical Services Specialist, Synergy Resources Session Background Ever want to automate a repetitive function or have the system perform calculations that you may be doing

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 2: Basic Visual Basic programming 2-1: What is Visual Basic IFA/QFN VBA Tutorial Notes prepared by Keith Wong BASIC is an acronym for Beginner's All-purpose Symbolic Instruction Code. It is a type

More information

'Attribute_value = objarguments(0) 'String representing the secedit attribute to test

'Attribute_value = objarguments(0) 'String representing the secedit attribute to test ----------------------- 'Use Case: #? : Secedit Test 'Goal: Tests the attributes of one or more Security settings available within Secedit 'relation document :????.doc 'Version: 1 Feb 3, 2006 'Author:

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

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB Visual Programming 1. What is Visual Basic? Visual Basic is a powerful application development toolkit developed by John Kemeny and Thomas Kurtz. It is a Microsoft Windows Programming language. Visual

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

Using VBScript For Perfecting Statistical Report

Using VBScript For Perfecting Statistical Report Using VBScript For Perfecting Statistical Report Ekaterina Torchinskaya, Data MATRIX Ltd., St. Petersburg, Russia Andrey Myslivets, Data MATRIX Ltd., St. Petersburg, Russia PhUSE 2017, CT11 Outline How

More information

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE

MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE MICROSOFT EXCEL VISUAL BASIC FOR APPLICATIONS INTERMEDIATE NOTE Unless otherwise stated, screenshots of dialog boxes and screens in this book were taken using Excel 2003 running on Window XP Professional.

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

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development.

The Item_Master_addin.xlam is an Excel add-in file used to provide additional features to assist during plan development. Name: Tested Excel Version: Compatible Excel Version: Item_Master_addin.xlam Microsoft Excel 2013, 32bit version Microsoft Excel 2007 and up (32bit and 64 bit versions) Description The Item_Master_addin.xlam

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

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG

KEYWORDS DDE GETOBJECT PATHNAME CLASS VB EDITOR WITHEVENTS HMI 1.0 TYPE LIBRARY HMI.TAG Document Number: IX_APP00113 File Name: SpreadsheetLinking.doc Date: January 22, 2003 Product: InteractX Designer Application Note Associated Project: GetObjectDemo KEYWORDS DDE GETOBJECT PATHNAME CLASS

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

Disables all services configured as manual start. Among other things, this prevents Power Users from being able to start these services.

Disables all services configured as manual start. Among other things, this prevents Power Users from being able to start these services. GO Software Pty Limited Map: 27 Tacoma Blvd, Pasadena SA 5042 Phn: 0403-063-991 Fax: none ABN: 54-008-044-906 ACN: 008-044-906 Eml: support@gosoftware.com.au Web: www.gosoftware.com.au VBScript Scripts

More information

How to save money on Oracle Java Client Licenses

How to save money on Oracle Java Client Licenses How to save money on Oracle Java Client Licenses Oracle has multiple software for Java Clients. You can use the Enterprise version (JEE), but also the Runtime Engine (JRE). There is one big difference:

More information

'... '... '... Module created: unknown '... Proj finished: March 21, 2012 '... '...

'... '... '... Module created: unknown '... Proj finished: March 21, 2012 '... '... ThisWorkbook - 1 If g_bdebugmode Then '... Module created: unknown '... Proj finished: March 21, 2012 '************************* CLASS-LEVEL DECLARATIONS ************************** Option Explicit Option

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

00:33 Network Loses Connection. 00:30 Health Check. Sweep all files in the monitored folder regardless of when deposited (i.e., process ALL files).

00:33 Network Loses Connection. 00:30 Health Check. Sweep all files in the monitored folder regardless of when deposited (i.e., process ALL files). FOLDER SWEEP OVERVIEW A common use of EFT Server s Folder Monitor rule is to detect files and move them to a different location on the network for processing. Mission critical operations require all files

More information

Programming with visual Basic:

Programming with visual Basic: Programming with visual Basic: 1-Introdution to Visual Basics 2-Forms and Control tools. 3-Project explorer, properties and events. 4-make project, save it and its applications. 5- Files projects and exercises.

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

DIGIBRANDING SIGNATURE SCRIPT Stepped Out

DIGIBRANDING SIGNATURE SCRIPT Stepped Out DIGIBRANDING SIGNATURE SCRIPT Stepped Out Here I walked the script and added some info on setup variables. Pay Attention to notes and items in RED START ** Declare some constants 'On the next line edit

More information

Excel VBA Programming

Excel VBA Programming Exclusive Study Manual Excel VBA Programming Advanced Excel Study Notes (For Private Circulation Only Not For Sale) 7208669962 8976789830 (022 ) 28114695 www.laqshya.in info@laqshya.in Study Notes Excel

More information

Associating Run As Accounts in Operations Manager 2007

Associating Run As Accounts in Operations Manager 2007 Associating Run As Accounts in Operations Manager 2007 A short tutorial on how to associate a Run As Account to a monitor in Operations Manager 2007 Stefan Stranger, MOM MVP http://weblog.stranger.nl December,

More information

IFA/QFN VBA Tutorial Notes prepared by Keith Wong

IFA/QFN VBA Tutorial Notes prepared by Keith Wong IFA/QFN VBA Tutorial Notes prepared by Keith Wong Chapter 5: Excel Object Model 5-1: Object Browser The Excel Object Model contains thousands of pre-defined classes and constants. You can view them through

More information

Microsoft System Center Configuration Manager Dell Factory Integration

Microsoft System Center Configuration Manager Dell Factory Integration Microsoft System Center Manager Dell Factory Integration User Guide September 2018 to ConfigMgr OSD in Dell Factories Administrators of Microsoft System Center Manager (referenced as Manager or ConfigMgr

More information

Retrieve the shortcut properties from all the shortcuts in the Start Menu

Retrieve the shortcut properties from all the shortcuts in the Start Menu Retrieve the shortcut properties from all the shortcuts in the Start Menu As a packager it is needed to retrieve the shortcut properties. What executable is used in each shortcut. On MS Forums I started

More information

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation

BASIC EXCEL SYLLABUS Section 1: Getting Started Section 2: Working with Worksheet Section 3: Administration Section 4: Data Handling & Manipulation BASIC EXCEL SYLLABUS Section 1: Getting Started Unit 1.1 - Excel Introduction Unit 1.2 - The Excel Interface Unit 1.3 - Basic Navigation and Entering Data Unit 1.4 - Shortcut Keys Section 2: Working with

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

PrimalScript. Your First 20 Minutes. Your First 20 Minutes. Start here to be productive with PrimalScript in just 20 minutes.

PrimalScript. Your First 20 Minutes. Your First 20 Minutes. Start here to be productive with PrimalScript in just 20 minutes. Your First 20 Minutes Contents Before Installing PrimalScript Install PrimalScript Launch PrimalScript Set Script and Project Folders Create a New Script Insert WMI Code Use PrimalSense Run a Script with

More information

MonitorPack Guard deployment

MonitorPack Guard deployment MonitorPack Guard deployment Table of contents 1 - Download the latest version... 2 2 - Check the presence of Framework 3.5... 2 3 - Install MonitorPack Guard... 4 4 - Data Execution Prevention... 5 5

More information

TIPS & TRICKS SERIES

TIPS & TRICKS SERIES TIPS & TRICKS SERIES TIPS & TRICKS OFFICE XP MACROS C o m p i l e d b y MUHAMMAD AJMAL BEIG NAZ TIPS & TRICKS OFFICE XP MACROS P a g e 1 CONTENTS Table of Contents OFFICE XP MACROS 3 ABOUT MACROS 3 MICROSOFT

More information

Microsoft Excel Level 2

Microsoft Excel Level 2 Microsoft Excel Level 2 Table of Contents Chapter 1 Working with Excel Templates... 5 What is a Template?... 5 I. Opening a Template... 5 II. Using a Template... 5 III. Creating a Template... 6 Chapter

More information

I

I I II Disclaimer Excel VBA Made Easy is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation. Trademarks Microsoft,

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

INFORMATICS: Computer Hardware and Programming in Visual Basic 81

INFORMATICS: Computer Hardware and Programming in Visual Basic 81 INFORMATICS: Computer Hardware and Programming in Visual Basic 81 Chapter 3 THE REPRESENTATION OF PROCESSING ALGORITHMS... 83 3.1 Concepts... 83 3.1.1 The Stages of Solving a Problem by Means of Computer...

More information

ZENworks 11 Support Pack 4 Endpoint Security Scripting Reference. October 2016

ZENworks 11 Support Pack 4 Endpoint Security Scripting Reference. October 2016 ZENworks 11 Support Pack 4 Endpoint Security Scripting Reference October 2016 Legal Notice For information about legal notices, trademarks, disclaimers, warranties, export and other use restrictions, U.S.

More information

ZENworks 2017 Endpoint Security Scripting Reference. December 2016

ZENworks 2017 Endpoint Security Scripting Reference. December 2016 ZENworks 2017 Endpoint Security Scripting Reference December 2016 Legal Notice For information about legal notices, trademarks, disclaimers, warranties, export and other use restrictions, U.S. Government

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

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

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

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration

ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 Computing for Engineers Week 9 Dialogues and Forms Numerical Integration ENGG1811 UNSW, CRICOS Provider No: 00098G W9 slide 1 References & Info Chapra (Part 2 of ENGG1811 Text) Topic 21 (chapter

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

Smart Access. CROSSTAB queries are helpful tools for displaying data in a tabular. Automated Excel Pivot Reports from Access. Mark Davis. vb123.

Smart Access. CROSSTAB queries are helpful tools for displaying data in a tabular. Automated Excel Pivot Reports from Access. Mark Davis. vb123. vb123.com Smart Access Solutions for Microsoft Access Developers Automated Excel Pivot Reports from Access Mark Davis 2000 2002 Excel pivot reports are dynamic, easy to use, and have several advantages

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

#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

Accessing Password Protected Microsoft Excel Files in A SAS Grid Environment

Accessing Password Protected Microsoft Excel Files in A SAS Grid Environment SESUG Paper 213-2018 Accessing Password Protected Microsoft Excel Files in A SAS Grid Environment Brandon Welch, Rho Inc.; Travis Mason, Rho Inc. ABSTRACT Microsoft Excel continues as a popular choice

More information

Putting It All Together: Your First WMI/ADSI Script

Putting It All Together: Your First WMI/ADSI Script CHAPTER 20 Putting It All Together: Your First WMI/ADSI Script IN THIS CHAPTER. Designing the Script. Writing Functions and Subroutines. Writing the Main Script. Testing the Script By now, you should have

More information

Putting It All Together: Your First WMI/ADSI Script

Putting It All Together: Your First WMI/ADSI Script jones.book Page 351 Wednesday, February 25, 2004 2:11 PM CHAPTER 20 Putting It All Together: Your First WMI/ADSI Script IN THIS CHAPTER It s time to leverage what you ve learned about ADSI and WMI scripting.

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

A Back-End Link Checker for Your Access Database

A Back-End Link Checker for Your Access Database A Back-End for Your Access Database Published: 30 September 2018 Author: Martin Green Screenshots: Access 2016, Windows 10 For Access Versions: 2007, 2010, 2013, 2016 Working with Split Databases When

More information

PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE

PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE SDN Contribution PROGRAMATICALLY STARTING AND STOPPING AN SAP XMII UDS EXECUTABLE INSTANCE Summary Some data sources run as executable programs which is true of most SCADA packages. In order for an SAP

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

Microsoft Excel > Shortcut Keys > Shortcuts

Microsoft Excel > Shortcut Keys > Shortcuts Microsoft Excel > Shortcut Keys > Shortcuts Function Keys 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

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Microsoft Excel 2016 Level 1

Microsoft Excel 2016 Level 1 Microsoft Excel 2016 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based

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

Microsoft Excel 2010 Level 1

Microsoft Excel 2010 Level 1 Microsoft Excel 2010 Level 1 One Day Course Course Description You have basic computer skills such as using a mouse, navigating through windows, and surfing the Internet. You have also used paper-based

More information

Tools for the VBA User

Tools for the VBA User 11/30/2005-3:00 pm - 4:30 pm Room:Mockingbird 1/2 [Lab] (Swan) Walt Disney World Swan and Dolphin Resort Orlando, Florida R. Robert Bell - MW Consulting Engineers and Phil Kreiker (Assistant); Darren Young

More information

The name of this chapter is Dealing with Devices, but of

The name of this chapter is Dealing with Devices, but of Dealing with Devices CHAPTER W2 The name of this chapter is Dealing with Devices, but of course we never deal with our devices directly. Instead, we delegate that job to Windows, and it takes care of the

More information

Dell OpenManage Essentials v1.1 Supporting Dell Client Devices

Dell OpenManage Essentials v1.1 Supporting Dell Client Devices Dell OpenManage Essentials v1.1 Supporting Dell Client Devices This Dell technical white paper provides the required information about Dell client devices (OptiPlex, Precision, Latitude) support in OpenManage

More information

Introduction to Computer Use II

Introduction to Computer Use II Winter 2006 (Section M) Topic F: External Files and Databases Using Classes and Objects Friday, March 31 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions

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

The WebBrowser control is the heart of Internet Explorer. It can. Using the WebBrowser Control. Chapter 19

The WebBrowser control is the heart of Internet Explorer. It can. Using the WebBrowser Control. Chapter 19 Chapter 19 Using the WebBrowser Control In This Chapter Discover the versatile WebBrowser control, and create your own dialog boxes using plain HTML templates Enumerate and access DHTML elements Link script

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

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

'Get the old path from the registry value we write using this script stroldpath = GetOldPath()

'Get the old path from the registry value we write using this script stroldpath = GetOldPath() ' Folder Migration ' Will correct recent files using the registry and.lnk files on the desktop ' The script is designed to be used as a logon script in an environment where all folders are redirected to

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

WinINSTALL 9.0 Master Document to be used as an internal resource only

WinINSTALL 9.0 Master Document to be used as an internal resource only INDEX Create basic package Editing your package How to add serials and keys Action codes Define the custom action - Pre-processing during installation - Post-processing during installation - Pre-processing

More information

d2vbaref.doc Page 1 of 22 05/11/02 14:21

d2vbaref.doc Page 1 of 22 05/11/02 14:21 Database Design 2 1. VBA or Macros?... 2 1.1 Advantages of VBA:... 2 1.2 When to use macros... 3 1.3 From here...... 3 2. A simple event procedure... 4 2.1 The code explained... 4 2.2 How does the error

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

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

Microsoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet

Microsoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet Microsoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet Signing your name below means the work you are turning in is your own work and you haven t given your work to anyone else. Name

More information

Sébastien Mathier wwwexcel-pratiquecom/en Variables : Variables make it possible to store all sorts of information Here's the first example : 'Display the value of the variable in a dialog box 'Declaring

More information

Autodesk Inventor Tutorials by Sean Dotson VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R Sean

Autodesk Inventor Tutorials by Sean Dotson   VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R Sean Autodesk Inventor Tutorials by Sean Dotson www.sdotson.com sean@sdotson.com VBA Functions in Parts Part Two Latest Revision: 3/17/03 For R6 2003 Sean Dotson (sdotson.com) Inventor is a registered trademark

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

MS Excel VBA Class Goals

MS Excel VBA Class Goals MS Excel VBA 2013 Class Overview: Microsoft excel VBA training course is for those responsible for very large and variable amounts of data, or teams, who want to learn how to program features and functions

More information

How to modify convert task to use variable value from source file in output file name

How to modify convert task to use variable value from source file in output file name Page 1 of 6 How to modify convert task to use variable value from source file in output file name The default SolidWorks convert task add-in does not have support for extracting variable values from the

More information

Getting started 7. Writing macros 23

Getting started 7. Writing macros 23 Contents 1 2 3 Getting started 7 Introducing Excel VBA 8 Recording a macro 10 Viewing macro code 12 Testing a macro 14 Editing macro code 15 Referencing relatives 16 Saving macros 18 Trusting macros 20

More information

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014

Outline. Midterm Review. Using Excel. Midterm Review: Excel Basics. Using VBA. Sample Exam Question. Midterm Review April 4, 2014 Midterm Review Larry Caretto Mechanical Engineering 209 Computer Programming for Mechanical Engineers April 4, 2017 Outline Excel spreadsheet basics Use of VBA functions and subs Declaring/using variables

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

Advanced Excel. Click Computer if required, then click Browse.

Advanced Excel. Click Computer if required, then click Browse. Advanced Excel 1. Using the Application 1.1. Working with spreadsheets 1.1.1 Open a spreadsheet application. Click the Start button. Select All Programs. Click Microsoft Excel 2013. 1.1.1 Close a spreadsheet

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

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013) T APPENDIX B he Excel template for the Payroll Project is an electronic version of the books of account and payroll

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

Study Guide. PCIC 3 B2 GS3- Key Applications-Excel. Copyright 2010 Teknimedia Corporation

Study Guide. PCIC 3 B2 GS3- Key Applications-Excel. Copyright 2010 Teknimedia Corporation Study Guide PCIC 3 B2 GS3- Key Applications-Excel Copyright 2010 Teknimedia Corporation Teknimedia grants permission to any licensed owner of PCIC 3 B GS3 Key Applications-Excel to duplicate the contents

More information

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office

Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office 1 2 Day : Date : Objects : Open MS Excel program. Subject : * Open Excel application. Select : start Choose: programs Choose : Microsoft Office Select: Excel * Close the Excel program Click on the Close

More information

KEYBOARD SHORTCUTS AND HOT KEYS

KEYBOARD SHORTCUTS AND HOT KEYS KEYBOARD SHORTCUTS AND HOT KEYS Page 1 This document is devoted to using the keyboard instead of the mouse to perform tasks within applications. This list is by no means the "be all and end all". There

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

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