Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Open Excel using Access macro

Hi
I just need to know how to open Excel from within Access. I don't need to
open a file - as my Auto-Open macro does that - and it quits Excel too.
An overnight scheduled task in Access creates an unformatted sheet, which I
would like my Auto_Open macro to format and I'd just like Access to
initiate the opening of Excel.
Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Open Excel using Access macro

Here's something I use...

-----------------------------------------

Function fctFormatData(strMacro As String)

' Once the data is Output this fornmats the data. Personal.xls is used to
hold all external macros.

Dim xlsWorkbook As Excel.Workbook

DoCmd.SetWarnings False

Set xlsWorkbook = GetObject("c:\Book1.xls", "Excel.Sheet")
xlsWorkbook.Application.Visible = True
xlsWorkbook.Application.Run "PERSONAL.xls!" & strMacro, cstSite

End Function

----------------------------------------------------------

HTH

"Andy" wrote:

Hi
I just need to know how to open Excel from within Access. I don't need to
open a file - as my Auto-Open macro does that - and it quits Excel too.
An overnight scheduled task in Access creates an unformatted sheet, which I
would like my Auto_Open macro to format and I'd just like Access to
initiate the opening of Excel.
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Open Excel using Access macro

Please ignore this post! I meant to post it on Access Programming - which is
what I'll do now!
Cheers.
Andy.

<Andy wrote in message ...
Hi
I just need to know how to open Excel from within Access. I don't need to
open a file - as my Auto-Open macro does that - and it quits Excel too.
An overnight scheduled task in Access creates an unformatted sheet, which
I would like my Auto_Open macro to format and I'd just like Access to
initiate the opening of Excel.
Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Macro to Open Access Launchnet Excel Worksheet Functions 9 June 22nd 07 03:57 PM
How do I open an Access file with a macro in Excel? gaitkeeper Excel Programming 1 May 26th 05 10:06 PM
Open Access Database under and Excel window using a Macro BMSpell Excel Worksheet Functions 1 January 8th 05 05:32 PM
checking if an access database is open from excel macro Keyur Excel Programming 0 April 16th 04 04:03 PM
Open Ms Access database with excel macro Sani Excel Programming 2 November 19th 03 06:06 AM


All times are GMT +1. The time now is 09:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"