Edit XLS output from SendObject method?

G

Guest

I am using the DoCmd.SendObject method to send a query in the form of an
Excel spreadsheet. How can I obtain a reference to the output file for
editing? I need to change the name of the sheet in my output file before
sending it.

Nathan
 
N

Nikos Yannacopoulos

Nathan,

You could use DoCmd.TransferSpreadsheet intead. One of the
TransferSpreadsheet arguments is Range; Access help says it is not used in
Export, but if you give it a value (string) it will name the worksheet after
it (an undocumented feature, I guess).

HTH,
Nikos

"NoSpamTakeSquareRootOfNumber"
 

Ask a Question

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.

Ask a Question

Top