G
Geometra76
I need to export two access queries to one excel file with two tabs
I have found that TransferSpreadsheet will export onto an existing
spreadsheet when the spreadsheet's name is the same as the name of the query
being exported (and leaving the Range argument blank). Perhaps try making a
copy of your query and name it Provadue.. then export it to that file.
.... or using Automation to place the data in cells in a pre-formattedIt's possible that this won't work either because you already have more than
one sheet in the file. Honestly, I've not used this approach for any
application. The "normal" approaches that others have posted involve
exporting to an EXCEL file and then using Automation to add the desired
formatting, or using EXCEL to import the data from ACCESS.
John Nurick said:Hi Ken,
This doesn't work reliably (if at all) for me. I think it may relate to
what if anything is on the existing sheet. Even when I do specify a
sheet name and the data is exported to the existing sheet, the sheet's
formatting is replaced by the default MS Sans Serif 10.
Geometra76 said:Hi Ken,
I started everything from the scratch and when I ran the macro it did
export
the queries into one excel formatted file with two tabs. I named the
spreadsheet tabs same as the queries and left the range argument blank. I
do
not understand why it did not work before since I performed the same
steps. I
am happy that is working now.
Is it possible to use the excel file as a template?
Thank you for your help
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.