Below is part of module from a db I took over for someone who left are company. The db was running fine but for some reason now we receive an error when this is run. The error is Compile Error: User-Defined type not defined. It yellows out this line. Dim xlApp As Excel.Application
This line is used to open excel.
Is there something wrong with this code? I'm clueless. Thanks for the help...
Dim filetoopen As String
Dim varExcelName As String
varExcelName = saveme & ".XLS"
filetoopen = xlApp.GetSaveAsFilename(varExcelName, "Microsoft Excel Files (*.xl*), *.xls
This line is used to open excel.
Is there something wrong with this code? I'm clueless. Thanks for the help...
Dim filetoopen As String
Dim varExcelName As String
varExcelName = saveme & ".XLS"
filetoopen = xlApp.GetSaveAsFilename(varExcelName, "Microsoft Excel Files (*.xl*), *.xls