sanders1969
Gebruiker
- Lid geworden
- 29 dec 2018
- Berichten
- 243
Via Access open ik een excel bestand en daarna zal Access worden afgesloten worden via DoCmd.Quit
Alleen blijft de focus op Access staan en hoe krijg ik de focus op Excel waar het geopende bestand wordt geactiveerd?
Alleen blijft de focus op Access staan en hoe krijg ik de focus op Excel waar het geopende bestand wordt geactiveerd?
Code:
Dim objExcelApp As Excel.Application
Dim wbk As Excel.Workbook
Set objExcelApp = Excel.Application
objExcelApp.Visible = True
strFileName="C:\excel_bestand.xls"
Set wbk = objExcelApp.Workbooks.Open(strFileName)
DoCmd.Quit