I'm getting an error - (11,12) expected end of statement.
'**************************************
'* This script creates user accounts. *
'**************************************
Set objExcel = CreateObject("Excel.Application") 'Set the correct file
location for the excel data file.
Set objWorkbook = objExcel.Workbooks.Open("L:\TRANSFER\Class Lists
2006\12a.xls")
domAddr = "@mcistudent.local" 'Set Variable for domain address.
intRow = 2 'Variable for loop. Begins on 2 to bypass header row.
Const ADS_PROPERTY_APPEND = 3 'Constant for adding to the group.
dim usrVar = "cn=" & objExcel.Cells(intRow,1).value 'new user's address.
Do Until objExcel.Cells(intRow,1).Value = "" 'Initiate loop. Set
objOU = GetObject("LDAP://ou=Senior Four,dc=mcistudent,dc=local") 'Create
Account.
Set objUser = objOU.Create("User",usrVar)