Hi everyone. I'm using Excel 2000 with Xp Pro. I made a macro that opens another workbook and converts about 4000 rows of data using If statements and Select Case statements. The entire process takes about 16 seconds with screen updating disabled. If I make a .exe in VB 6.0 using the same code (with changes to open the workbook and excel), it takes about 6 minutes to complete the process. I'm opening Excel by:
Dim ExcelApp as Object
Dim FixThisCSV as Workbook
Set ExcelApp = CreateObject("Excel.Application")
Set FixThisCSV = ExcelApp.Workbooks.Open(MyFileNameHere)
It seems that the If..Then and Case parts are taking the longest. Any help would be appreciated.
Thanks
Kerry
Dim ExcelApp as Object
Dim FixThisCSV as Workbook
Set ExcelApp = CreateObject("Excel.Application")
Set FixThisCSV = ExcelApp.Workbooks.Open(MyFileNameHere)
It seems that the If..Then and Case parts are taking the longest. Any help would be appreciated.
Thanks
Kerry