im trying to pull in the name of a dir/folder into a variable ive created called inputFunction but it stops compiling at
if folderExists(inputContent)
is there something wrong with this? it worked on another machine using excel 2003, but doesnt work on my machine using 2003 or 2010
..
if folderExists(inputContent)
is there something wrong with this? it worked on another machine using excel 2003, but doesnt work on my machine using 2003 or 2010
..
Code:
Private Function getFolderNameData(ByVal inputCellRow As Integer, ByVal inputCellColumn As Integer, ByVal inputIsOptional As Boolean) As String
Dim inputContent As String
inputContent = Sheets("run").Cells(inputCellRow, inputCellColumn).Value
If (inputContent <> "") Then
If folderExists(inputContent) Then
getFolderNameData = inputContent
Exit Function
Else
Call utility_logManager.generateReportDialog("error", "The directory '" & inputContent & "' does not exist. Please select a new folder.")
End If
ElseIf (inputIsOptional) Then
getFolderNameData = inputContent
Exit Function
End If