Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: Export data with open sheet

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Export data with open sheet
Giangi 14.07.2006 13:48:02
Good things to alls.
I want to export an access 97 table to excel in this way:
after path request and "OK" by user, I would open Excel application (in
foreground) and show data processing.
Someone would help me?
many thanks in advance.
(I beg your pardon for my bad English)
Giangi
Re: Export data with open sheet
John Nurick <j.mapSoN.nurick[ at ]dial.pipex.com> 15.07.2006 21:27:49
Hi Giangi,

You can use the VBA code here www.mvps.org/access/api/api0001.htm for
the "path request", and DoCmd.TransferSpreadsheet to export the table to
the Excel file.

Subsequently this VBA statement (where strFileSpec contains the path to
the Excel file) will open Excel with the file:
Application.FollowHyperlink strFileSpec

But I don't know what you mean when you say you want to "show data
processing".

On Fri, 14 Jul 2006 06:48:02 -0700, Giangi
<Giangi[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>Good things to alls.
>I want to export an access 97 table to excel in this way:
>after path request and "OK" by user, I would open Excel application (in
>foreground) and show data processing.
>Someone would help me?
>many thanks in advance.
>(I beg your pardon for my bad English)
>Giangi

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Re: Export data with open sheet
Giangi 17.07.2006 08:21:02
Many thanks John.
At http://www.mvps.org/access/modules/mdl0035.htm there is three methods for
trasfer records to excel with Automation: I have tryed the first and it has
resolved my problem (thanks to Dev Ashish, also).
Good bye and good luck.

Giangi El Dotor
----------------------------------------------------------
"John Nurick" wrote:

[Quoted Text]
> Hi Giangi,
>
> You can use the VBA code here www.mvps.org/access/api/api0001.htm for
> the "path request", and DoCmd.TransferSpreadsheet to export the table to
> the Excel file.
>
> Subsequently this VBA statement (where strFileSpec contains the path to
> the Excel file) will open Excel with the file:
> Application.FollowHyperlink strFileSpec
>
> But I don't know what you mean when you say you want to "show data
> processing".
>
> On Fri, 14 Jul 2006 06:48:02 -0700, Giangi
> <Giangi[ at ]discussions.microsoft.com> wrote:
>
> >Good things to alls.
> >I want to export an access 97 table to excel in this way:
> >after path request and "OK" by user, I would open Excel application (in
> >foreground) and show data processing.
> >Someone would help me?
> >many thanks in advance.
> >(I beg your pardon for my bad English)
> >Giangi
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net