I need the code to look up a number set in an excel worksheet page.
PRINTERGROUP PRINT Max No. of Files 10
This is on a page called Report Option. I want it to look at the Max number of files number.
This is the code I have now. Can anyone see a problem?
Public Function GetMaxNumberOfFiles() As Integer
On Error GoTo erh
'Assign the value of the cell.
GetMaxNumberOfFiles = sheetReportOptions.Cells(sheetQueries.GetDestinationRow(maxNoFilesQuery), sheetQueries.GetDestinationCol(maxNoFilesQuery))
Exit Function
'Standard error handling.
erh:
AppShowError "GetMaxNumberOfFiles", strReportOptionsErrorName
End Function
PRINTERGROUP PRINT Max No. of Files 10
This is on a page called Report Option. I want it to look at the Max number of files number.
This is the code I have now. Can anyone see a problem?
Public Function GetMaxNumberOfFiles() As Integer
On Error GoTo erh
'Assign the value of the cell.
GetMaxNumberOfFiles = sheetReportOptions.Cells(sheetQueries.GetDestinationRow(maxNoFilesQuery), sheetQueries.GetDestinationCol(maxNoFilesQuery))
Exit Function
'Standard error handling.
erh:
AppShowError "GetMaxNumberOfFiles", strReportOptionsErrorName
End Function