TransferSpreadsheet Range?

A

alex

Hi experts,

using Access '03...

I need a macro that transfers the results of an .mdb query to a
preexisting .xls doc.

I accomplished most of this by creating a transferspreadsheet macro
and populating the Range argument of the macro.

Problem is, however; I want the macro to create a new spreadsheet
everytime the macro executes (the query is a monthly report) without
user intervention. I tried to code the range arguement with something
like: Date() & "monthly" >> This argument, however, takes all text
literally and the spreadsheet name comes out Date___monthly.

I need to code this argument (Range) with something that will
automatically change the spreadsheet name each time the macro runs,
else, it will overwrite whatever is in the Range argument. Any
suggestions?

alex
 
K

Ken Snell \(MVP\)

Range argument for the macro would look like this:

=Date() & "_monthly"

Be sure to include the = sign at the beginning of the argument.
 
A

alex

Thanks Ken...never thought to use =

alex
Range argument for the macro would look like this:

=Date() & "_monthly"

Be sure to include the = sign at the beginning of the argument.
 

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