I have a problem with this line of code (my program keeps freezing)
I have a form with this in the initialize event
Set ExcelApp = CreateObject("Excel.Application"
ExcelApp.Workbooks.Open (FILE_PATH)
ExcelApp.Workbooks(FileName).Worksheets("SomeTab"
.Select
And on a button click event I have this line of code
MultiFilePath = ExcelApp.GetOpenFilename
(this is where my program keeps freezing, the button is clicked and gets frozen in the 'pushed' state, you know, when its indented. I have to CAD out and end my app.)
I declare my ExcelApp object in a module
Public ExcelApp As Object
Is there something wrong with what I have done?
I have a form with this in the initialize event
Set ExcelApp = CreateObject("Excel.Application"
ExcelApp.Workbooks.Open (FILE_PATH)
ExcelApp.Workbooks(FileName).Worksheets("SomeTab"
And on a button click event I have this line of code
MultiFilePath = ExcelApp.GetOpenFilename
(this is where my program keeps freezing, the button is clicked and gets frozen in the 'pushed' state, you know, when its indented. I have to CAD out and end my app.)
I declare my ExcelApp object in a module
Public ExcelApp As Object
Is there something wrong with what I have done?