Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default running an Acess Macro from excel

thanks everyone

ill play with these and i know it will be workign for me by the end of the day

regards

Stuart

"XP" wrote:

If you want to run a program you wrote in an MS-Access module, then:

The following will run a program named "MyProgram" in an Access DB at the
path
entered as shown below. The program must reside in a module:

Dim oAccess As Object
Dim sFullName As String

sFullName = "add the full path and file name with extension here"
Set oAccess = CreateObject("Access.Application")
oAccess.Visible = True
oAccess.OpenCurrentDatabase sFullName
oAccess.Run "MyProgram"

HTH

"stuart" wrote:

hi everyone

not sure if this is possible but you never know

I have in an ms access database a macro that will export a table to a
spreadsheet (not a vb macro but one of the objects in access type things - i
get confused easily so thought id say)

anyway, i have built up an excel application that will retrieve data and
show it nicely on a form list view etc (works good even if i do say so myself
lol), but what im wanting to be able to do next is press a button in excel
and have it export the table my data is on to excel

ok so here is the question - is it possible to use MS excel VBA to run a MS
Access macro object to export the data

thanks in advance

stuart

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
Can Excel be linked to MS Acess? Madhart Excel Discussion (Misc queries) 2 August 19th 08 11:46 AM
Linking Acess with Excel Perrygarl Excel Discussion (Misc queries) 1 November 15th 06 01:51 PM
How do I permit Excel to acess the internet? Alixw Excel Discussion (Misc queries) 3 November 10th 06 10:16 AM
Extracting from excel to acess database Palvin Excel Programming 1 December 20th 05 01:10 PM
Run Acess Macro Sandy Excel Programming 1 October 28th 05 07:14 PM


All times are GMT +1. The time now is 07:27 PM.

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

About Us

"It's about Microsoft Excel"