Hi,
I use VBA on a button click to run a macro which uses the TransferSpreadsheet process to export a query to excel (and keeps it open).
What i want is to then format the excel workbook to how i like it using the VBA still.
Is this possible?
I am trying to get my head around how to make access realise that Excel is already open but am having trouble. I'm using code such as:
set xlApp = Excel.Application
set xlBk = xlApp.ActiveWorkbook
but to no avil.
Can someone help please?
I use VBA on a button click to run a macro which uses the TransferSpreadsheet process to export a query to excel (and keeps it open).
What i want is to then format the excel workbook to how i like it using the VBA still.
Is this possible?
I am trying to get my head around how to make access realise that Excel is already open but am having trouble. I'm using code such as:
set xlApp = Excel.Application
set xlBk = xlApp.ActiveWorkbook
but to no avil.
Can someone help please?